Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i want to know the syntax for an if statement
i want the if statment to generate a "1", if the dates fall within the range 07/01/2002 - 06/30/2003 , if not, then "0" thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Matt,
=IF(AND(A1=DATEVALUE("07/01/2002"),A1<=DATEVALUE("06/30/2003")),1,0) -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "matt wolfe chazin" wrote in message ... i want to know the syntax for an if statement i want the if statment to generate a "1", if the dates fall within the range 07/01/2002 - 06/30/2003 , if not, then "0" thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Matt
=IF(AND(C1=A1,C1<=B1),1,0) where : A1 is 07/01/2002 B1 is 06/30/2003 C1 is the date to be checked Regards Trevor "matt wolfe chazin" wrote in message ... i want to know the syntax for an if statement i want the if statment to generate a "1", if the dates fall within the range 07/01/2002 - 06/30/2003 , if not, then "0" thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF statement inside a SUMIF statement.... or alternative method | Excel Worksheet Functions | |||
Reconcile Bank statement & Credit card statement & accounting data | Excel Worksheet Functions | |||
Embedding an OR statement in an IF statement efficiently | Excel Discussion (Misc queries) | |||
Sum if statement with a left statement | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions |