#1   Report Post  
Posted to microsoft.public.excel.misc
Jet Jet is offline
external usenet poster
 
Posts: 4
Default Leap Year

A have a simple formula:

K40 * D59 * B310

B310= 28 (Days in February)

I have cells that = year (2008, 2009 etc) that are not used in this formula.

I want a formula that will use 29 days ( as opposed to 28 as stated above)
when
calculating within a leap year. (I have a list of all leap years)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Leap Year

If your year cell (2008.2009 etc) was - say - B300 then:

=DAY(DATE(B300,3,0))

will return the correct numner of days in February

--
HTH

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


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


"Jet" wrote in message
...
A have a simple formula:

K40 * D59 * B310

B310= 28 (Days in February)

I have cells that = year (2008, 2009 etc) that are not used in this
formula.

I want a formula that will use 29 days ( as opposed to 28 as stated above)
when
calculating within a leap year. (I have a list of all leap years)

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
Jet Jet is offline
external usenet poster
 
Posts: 4
Default Leap Year

Thank you

"Sandy Mann" wrote:

If your year cell (2008.2009 etc) was - say - B300 then:

=DAY(DATE(B300,3,0))

will return the correct numner of days in February

--
HTH

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


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


"Jet" wrote in message
...
A have a simple formula:

K40 * D59 * B310

B310= 28 (Days in February)

I have cells that = year (2008, 2009 etc) that are not used in this
formula.

I want a formula that will use 29 days ( as opposed to 28 as stated above)
when
calculating within a leap year. (I have a list of all leap years)

Thanks




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
leap year p-nut Excel Discussion (Misc queries) 5 January 10th 08 05:34 AM
Leap Year Ralph Page Charts and Charting in Excel 3 November 5th 07 01:57 AM
How to determine if year is a leap year Wanda Excel Worksheet Functions 7 September 17th 07 07:48 AM
Leap year date P M Robbins Excel Discussion (Misc queries) 5 March 30th 06 10:33 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 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"