A Microsoft Office (Excel, Word) forum. OfficeFrustration

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 » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date comparisons within AND() functions



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 11:12 PM posted to microsoft.public.excel.worksheet.functions
Sambonator
external usenet poster
 
Posts: 2
Default 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(A16/30/2009,GOOD,BAD)
WOrks fine.
When I do =IF(AND(A16/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  
Old June 24th, 2009, 12:58 AM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default 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(A16/30/2009,GOOD,BAD)
WOrks fine.
When I do =IF(AND(A16/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?


 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:22 AM.


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