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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula Help...



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 10:39 PM posted to microsoft.public.excel.misc
zoe
external usenet poster
 
Posts: 97
Default Formula Help...

I'm calculating a date 5 years in advance for a lot of cells. If the original
(J4) date is blank how do I tell it to leave the new date blank also? Does
that make sense? Thansk.

=DATE(YEAR(J4)+5,MONTH(J4),DAY(J4))
  #2  
Old April 15th, 2010, 10:47 PM posted to microsoft.public.excel.misc
ck13
external usenet poster
 
Posts: 44
Default Formula Help...

Try =IF(J4="","",DATE(YEAR(J4)+5,MONTH(J4),DAY(J4)))

"Zoe" wrote:

I'm calculating a date 5 years in advance for a lot of cells. If the original
(J4) date is blank how do I tell it to leave the new date blank also? Does
that make sense? Thansk.

=DATE(YEAR(J4)+5,MONTH(J4),DAY(J4))

  #3  
Old April 15th, 2010, 10:56 PM posted to microsoft.public.excel.misc
zoe
external usenet poster
 
Posts: 97
Default Formula Help...

That worked perfect!!!! Thank you so very much!!!

"ck13" wrote:

Try =IF(J4="","",DATE(YEAR(J4)+5,MONTH(J4),DAY(J4)))

"Zoe" wrote:

I'm calculating a date 5 years in advance for a lot of cells. If the original
(J4) date is blank how do I tell it to leave the new date blank also? Does
that make sense? Thansk.

=DATE(YEAR(J4)+5,MONTH(J4),DAY(J4))

  #4  
Old April 17th, 2010, 03:27 PM posted to microsoft.public.excel.misc
Dana DeLouis[_3_]
external usenet poster
 
Posts: 184
Default Formula Help...

Hi. Just note that if the original date is 2/29/2004
then Year(J4)+5 rounds forward to Mar 1
EDate rounds back to Feb 28.

If you wish to round back, then maybe:
=IF(J4="","",EDATE(J4,60))

= = = = =
Dana DeLouis




On 4/15/10 5:56 PM, Zoe wrote:
That worked perfect!!!! Thank you so very much!!!

"ck13" wrote:

Try =IF(J4="","",DATE(YEAR(J4)+5,MONTH(J4),DAY(J4)))

"Zoe" wrote:

I'm calculating a date 5 years in advance for a lot of cells. If the original
(J4) date is blank how do I tell it to leave the new date blank also? Does
that make sense? Thansk.

=DATE(YEAR(J4)+5,MONTH(J4),DAY(J4))

 




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 09:57 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.