[Excel 2003] - IF Function using Dates & Text
Issue
I'm trying to write a function for a cell which refers to a date in another cell - which if it is between 01/01/1994 and 31/12/1995 the cell will read U16, but if the date is between 01/01/1996 and 31/12/1997 it will read U14 and if the date is later than 01/01/1998, it will read U12.
Solution
Your date entry is in A1
Try this formula:
=IF(AND(A1>="1/1/94"+0,A1<="12/31/95"+0),"U16",IF(AND(A1>="1/1/96"+0,A1<="12/31/97"+0),"U14",IF(A1>=1/1/98,"U12","")))
Study this carefully so that you and create such a formula in future
Remember in excel the dates are entered as mm/dd/yy
that is 5/10/94 is 10th May 1994
Note
Thanks to
venkat1926 for this tip on the forum.