A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF



 
 
Thread Tools Display Modes
  #1  
Old April 13th, 2009, 07:16 PM posted to microsoft.public.excel.worksheet.functions
Susan
external usenet poster
 
Posts: 651
Default IF

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!
  #2  
Old April 13th, 2009, 07:49 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default IF

=IF(AND(A1DATEVALUE("3/31/2009"),A1DATEVALUE("5/1/2009")),DATEVALUE("6/15/2009"),"") and format as date.
--
Gary''s Student - gsnu200846


"Susan" wrote:

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!

  #3  
Old April 14th, 2009, 03:39 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default IF

Another one using DATE

=IF(AND(A1=DATE(2009,4,1),A1=DATE(2009,4,30)),DA TE(2009,6,15),"")

If this post helps click Yes
---------------
Jacob Skaria


"Susan" wrote:

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!

  #4  
Old April 14th, 2009, 03:53 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default IF

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!


  #5  
Old April 14th, 2009, 04:02 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
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!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.