Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gsmith
 
Posts: n/a
Default How can I use a date in an IF/AND statement?

Trying to formulate =IF(c2 01/31/05, 1,"2") Is there a different date
format to use?

Thank you in advance for any help.
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi,

Try this:

=2-(C2VALUE("01/31/05"))

or

=2-(C2DATEVALUE("01/31/05"))

or

=2-(C2DATE(2005,1,31))

or

=IF(C2DATE(2005,1,31),1,2)

etc.

Regards,
KL


"gsmith" wrote in message
...
Trying to formulate =IF(c2 01/31/05, 1,"2") Is there a different date
format to use?

Thank you in advance for any help.



  #3   Report Post  
gsmith
 
Posts: n/a
Default

Yahoo - that was exactly what I needed. Thank you KL!!

"KL" wrote:

Hi,

Try this:

=2-(C2VALUE("01/31/05"))

or

=2-(C2DATEVALUE("01/31/05"))

or

=2-(C2DATE(2005,1,31))

or

=IF(C2DATE(2005,1,31),1,2)

etc.

Regards,
KL


"gsmith" wrote in message
...
Trying to formulate =IF(c2 01/31/05, 1,"2") Is there a different date
format to use?

Thank you in advance for any help.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Recurring annual events using a specific date as a trigger date Bamboozled Excel Worksheet Functions 1 June 6th 05 01:44 PM
extract date from the most current date Cali00 Excel Discussion (Misc queries) 1 April 13th 05 02:05 PM
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"