Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date comparisons within AND() functions
I'm trying to compare dates within an =AND() function but having trouble.
I can get =IF() to work but not =AND(). E.g. Cell A1 = 6/15/2009 I can do =if(A1<6/30/2009,GOOD,BAD) WOrks fine. When I do =IF(AND(A1<6/30/2009,TRUE),GOOD,BAD) it doesn't give the right answer. Is there something about formatting dates within AND() that makes it fail, when it works within an IF function? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Date comparisons within AND() functions
=IF(A1<"6/30/2009","GOOD","BAD")
=IF(AND(A1<"6/30/2009",TRUE),"GOOD","BAD") both worked for me. HTH, Bernie MS Excel MVP "Sambonator" wrote in message ... I'm trying to compare dates within an =AND() function but having trouble. I can get =IF() to work but not =AND(). E.g. Cell A1 = 6/15/2009 I can do =if(A1<6/30/2009,GOOD,BAD) WOrks fine. When I do =IF(AND(A1<6/30/2009,TRUE),GOOD,BAD) it doesn't give the right answer. Is there something about formatting dates within AND() that makes it fail, when it works within an IF function? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Yr to Yr comparisons | Excel Discussion (Misc queries) | |||
lookup functions and text comparisons | Excel Worksheet Functions | |||
Formula For Date Comparisons | Excel Discussion (Misc queries) | |||
Spreadsheet Comparisons | Excel Discussion (Misc queries) | |||
Can I add more than 2 comparisons to an IF statement?? | Excel Discussion (Misc queries) |