Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF and THEN statements | Excel Discussion (Misc queries) | |||
IF statements with more than one date column | Excel Worksheet Functions | |||
If, Then Statements | Excel Worksheet Functions | |||
If, Then Statements | Excel Worksheet Functions | |||
IF Statements (Mutliple Statements) | Excel Worksheet Functions |