J
Jason O
Hi,
I am trying to incorporate <= and >= into an IF statement but using dates
and not numerical values (although I am aware Excel in effect turns dates
into numbers). For example, if cell A1 has a date between 01/03/04 and
31/08/04 I want to return one value and if it has a date between 01/09/04
and 28/02/05 then return another. I have tried the following:
=IF(A1>=01/03/04 &A1<=31/08/04,"north","south")
However this does not work and I have checked that A1 is formatted as
'date'.If cell A1 contains a date within the "north" paramaters "south" is
returned? I know I must be doing something blindingly obvious and/or stupid
so any assistance is greatly appreciated. And how would the following
criteria be included into the same IF statement:
MANY TIA,
Jason
____
I know a VLOOKUP (true) may be a better way of doing it but knowing how to
do it this way will help my general understanding. Cheers!
I am trying to incorporate <= and >= into an IF statement but using dates
and not numerical values (although I am aware Excel in effect turns dates
into numbers). For example, if cell A1 has a date between 01/03/04 and
31/08/04 I want to return one value and if it has a date between 01/09/04
and 28/02/05 then return another. I have tried the following:
=IF(A1>=01/03/04 &A1<=31/08/04,"north","south")
However this does not work and I have checked that A1 is formatted as
'date'.If cell A1 contains a date within the "north" paramaters "south" is
returned? I know I must be doing something blindingly obvious and/or stupid
so any assistance is greatly appreciated. And how would the following
criteria be included into the same IF statement:
=01/09/04 and <=28/02/05 then return "south"
=01/03/05 and <=31/08/05 then return "east"
-01/09/05 and <=28/02/06 then return "west"
MANY TIA,
Jason
____
I know a VLOOKUP (true) may be a better way of doing it but knowing how to
do it this way will help my general understanding. Cheers!