#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 271
Default IF

Hello,

Having touble using the IF function with dates.

IF cell a1 has a date from and including 4/1/2009 to 4/30/2009, need the
result in cell b1 to be 6/15/2009.

Thank you everyone!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default IF

Try this in B1 with your date in A1
=IF(AND(A1=DATE(2009,4,1),A1<=DATE(2009,4,30)),DA TE(2009,6,15),"")

Format B1 as DATE
--
Pl click the YES button
(if you see it - don''''''''t worry if you don''t),
if this answer was helpful.



"Susan" wrote:

Hello,

Having touble using the IF function with dates.

IF cell a1 has a date from and including 4/1/2009 to 4/30/2009, need the
result in cell b1 to be 6/15/2009.

Thank you everyone!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default IF

Assuming you simplified your question far too much, are you looking to
produce the 15th of the month that is two months hence (in other words,
7/21/2009 for example would produce 9/15/2009 as a result)? If so, try this
formula...

=IF(A1="","",DATE(YEAR(A1),MONTH(A1)+2,15))

--
Rick (MVP - Excel)


"Susan" wrote in message
...
Hello,

Having touble using the IF function with dates.

IF cell a1 has a date from and including 4/1/2009 to 4/30/2009, need the
result in cell b1 to be 6/15/2009.

Thank you everyone!


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



All times are GMT +1. The time now is 10:19 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"