Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
leap year | Excel Discussion (Misc queries) | |||
Leap Year | Charts and Charting in Excel | |||
How to determine if year is a leap year | Excel Worksheet Functions | |||
Leap year date | Excel Discussion (Misc queries) | |||
leap year question | Excel Discussion (Misc queries) |