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  

Date + 365 in New Column



 
 
Thread Tools Display Modes
  #21  
Old August 14th, 2007, 04:13 PM posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_]
external usenet poster
 
Posts: 1,439
Default Date + 365 in New Column

"Sandy Mann" wrote...
"Harlan Grove" wrote in message
oups.com...
=F2+366-(DAY(F2)DAY(F2+366))+AND(TEXT($F$2,"mmdd")="0229 ",
MOD(YEAR(F2+366-(DAY(F2)DAY(F2+366))),4)=0,
OR(MOD(YEAR(F2)+1,100)0,MOD(YEAR(F2)+1,400)=0 ))


Congratulations! it works for all dates.

I knew you could do it if I pushed you g

....

I deserve that this time. Figures I'd come up with the simple approach now
that I finally managed to get the complex approach working.

=F2+366-(DAY(F$2)DAY(F2+366)) [for filling down]
=F2+366-(DAY($F2)DAY(F2+366)) [for filling right]

So why didn't you think of that before me?


  #22  
Old August 14th, 2007, 04:39 PM posted to microsoft.public.excel.worksheet.functions
Sandy Mann
external usenet poster
 
Posts: 2,264
Default Date + 365 in New Column

"Harlan Grove" wrote in message
...
So why didn't you think of that before me?


Harlan you're not developing a sense of humour are you? g
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


 




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:44 PM.


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