Thread: IF
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein Rick Rothstein is offline
external usenet poster
 
Posts: 5,934
Default IF

Or, if the year is important, maybe this...

=IF(AND(MONTH(A1)=4,YEAR(A1)=2009),--("6/15/2009"))

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
Ignoring my attempted general solution posted elsewhere in this thread, if
you really are interested only in April dates becoming June 15th dates,
then perhaps this will do what you want...

=IF(MONTH(N1)=4,DATE(YEAR(N1),6,15),"")

--
Rick (MVP - Excel)


"Susan" wrote in message
...
Hello,

Having problem using the IF function with dates.

If the date in cell A1 is from and including 4/1/2009 to 4/30/2209, the
result in B1 should be 6/15/2009.

Thank you everyone!