Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Using if statements with a date

Hia

I want to use a formula which will return a 0, if the date is on or prior to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using if statements with a date

Assuming your date is in A1, try this:

=IF(A1<DATE(2005,1,1),0,2)

Hope this helps.

Pete

On Oct 29, 12:44*pm, Stonsey
wrote:
Hia

I want to use a formula which will return a 0, if the date is on or prior to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Using if statements with a date

=IF(A2<=DATEVALUE("12/31/2004"),0,IF(A2=DATEVALUE("1/1/2005",2,"No criteria
match"))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Stonsey" wrote:

Hia

I want to use a formula which will return a 0, if the date is on or prior to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Using if statements with a date

dates being in A2, A3, ...
=--(A2=DATE(2005,1,1))
Regards,
Stefi

€˛Stonsey€¯ ezt Ć*rta:

Hia

I want to use a formula which will return a 0, if the date is on or prior to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Using if statements with a date

Hi,

=IF(D8<=DATE(2004,12,31),0,2)

hope this helps

"Stonsey" wrote:

Hia

I want to use a formula which will return a 0, if the date is on or prior to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Using if statements with a date

I think Stefi may have intended to say
=(A2=DATE(2005,1,1))*2
--
David Biddulph

"Stefi" wrote in message
...
dates being in A2, A3, ...
=--(A2=DATE(2005,1,1))
Regards,
Stefi

"Stonsey" ezt ķrta:

Hia

I want to use a formula which will return a 0, if the date is on or prior
to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Using if statements with a date

It was an oversight, I didn't notice that the OP wants 2 on the TRUE branch.

Sorry for the late answer but I've just now realized that my e-mail
notification doesn't work.


--
Regards!
Stefi



€˛David Biddulph€¯ ezt Ć*rta:

I think Stefi may have intended to say
=(A2=DATE(2005,1,1))*2
--
David Biddulph

"Stefi" wrote in message
...
dates being in A2, A3, ...
=--(A2=DATE(2005,1,1))
Regards,
Stefi

"Stonsey" ezt Ć*rta:

Hia

I want to use a formula which will return a 0, if the date is on or prior
to
31 Dec 2004 and a 2 if date entered is on or after 1 January 2005 - Would
love some help on how to do this

Thanks



.

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
IF and THEN statements Athena[_2_] Excel Discussion (Misc queries) 5 July 2nd 09 08:53 PM
IF statements with more than one date column fyrefox Excel Worksheet Functions 5 December 24th 07 02:07 PM
If, Then Statements RS Excel Worksheet Functions 0 November 30th 06 05:38 PM
If, Then Statements Dave F Excel Worksheet Functions 0 November 30th 06 05:33 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM


All times are GMT +1. The time now is 08:35 AM.

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

About Us

"It's about Microsoft Excel"