ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Nested If Statement with date ranges (https://www.excelbanter.com/new-users-excel/451234-nested-if-statement-date-ranges.html)

Marlene Maffe

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

Claus Busch

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


All times are GMT +1. The time now is 01:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com