#1   Report Post  
Posted to microsoft.public.excel.misc
Mike
 
Posts: n/a
Default Leap Year Blues

I am creating an attendance chart. Using ex. A1= January 1,2006 and each
cell going forward is A2=A1+1,A3=A2+1 etc... When it comes to March 1st, it
is derived from Feb. 28th. I need to leave a blank cell between the two
dates, that will only be calculated during leap year, so as not to throw off
the calander.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default Leap Year Blues

I don't know your layout, but Excel knows exactly which years are leap years, so probably you don't have to do anything special.

--
Kind regards,

Niek Otten

"Mike" wrote in message ...
I am creating an attendance chart. Using ex. A1= January 1,2006 and each
cell going forward is A2=A1+1,A3=A2+1 etc... When it comes to March 1st, it
is derived from Feb. 28th. I need to leave a blank cell between the two
dates, that will only be calculated during leap year, so as not to throw off
the calander.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default Leap Year Blues

For my test I had Feb 28 in cell E1, so adjust as needed
I kept the A1+1 series except for cells F1 and G1
In F1 =IF(MOD(YEAR(E1),4)=0,E1+1,"") This leaves the cell blank when not a
leap year
in G1 =IF(MOD(YEAR(E1),4)=0,E1+2,E1+1)

Yes, I do know how to do a real leap year test but I do not expect the
worksheet to survive 100 years!
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Mike" wrote in message
...
I am creating an attendance chart. Using ex. A1= January 1,2006 and each
cell going forward is A2=A1+1,A3=A2+1 etc... When it comes to March 1st,
it
is derived from Feb. 28th. I need to leave a blank cell between the two
dates, that will only be calculated during leap year, so as not to throw
off
the calander.



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get Excel to automatically calculate salaries actually received in financial year? Kei Excel Discussion (Misc queries) 0 March 3rd 06 10:26 AM
is 1900 a Leap Year? Lex_Muga Excel Discussion (Misc queries) 11 December 29th 05 07:42 PM
Excel leap year question Jason New Users to Excel 4 December 3rd 05 09:01 PM
DOnt calculate leap year kckar Excel Worksheet Functions 8 July 19th 05 02:02 PM
leap year question tiw Excel Discussion (Misc queries) 5 April 20th 05 07:49 PM


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

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"