Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Nested If Statement with date ranges

Hi,

What is wrong with my formula? It is giving me a False not the number I need?

If the dates are 01/01/2006 to 12/31/15 return 120
01/01/1995 to 12/31/05 return 160
01/01/1900 to 12/31/1994 return 200




Thanks,
Marlene

Last edited by Marlene Maffe : December 23rd 15 at 06:13 PM
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,872
Default Nested If Statement with date ranges

Hi Marlene,

Am Wed, 23 Dec 2015 17:02:01 +0000 schrieb Marlene Maffe:

If the dates are 01/01/2006 to 12/31/15 return 120
01/01/1995 to 12/31/05 return 160
01/01/1900 to 12/31/1994 return 200


try:
=IF(A1<=DATE(1994,12,31),200,IF(A1<=DATE(2005,12,3 1),160,120))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a nested IF statement DR Excel Programming 6 July 30th 08 02:29 PM
NESTED IF STATEMENT USING DATE SSJ New Users to Excel 6 June 19th 07 03:51 PM
Nested Ranges? [email protected] Excel Programming 4 October 24th 06 06:34 PM
Nested If Statement guilbj2 Excel Discussion (Misc queries) 4 February 27th 06 05:01 PM
Nested If statement Jock W Excel Worksheet Functions 3 March 22nd 05 07:56 PM


All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"