A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » New Users to Excel
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Nested If Statement with date ranges



 
 
Thread Tools Display Modes
  #1  
Old December 23rd 15, 06:02 PM
Marlene Maffe Marlene Maffe is offline
Junior Member
 
First recorded activity by ExcelBanter: Dec 2015
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.
Ads
  #2  
Old December 23rd 15, 06:58 PM posted to microsoft.public.excel.newusers
Claus Busch
external usenet poster
 
Posts: 3,401
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 11:11 PM.


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