Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
I am starting two dates in my example. The first is 6/20/02 and the
second is 1/15/2006. I need to calculate in separate columns for years 2001 through 2006 the number of day in this year that are between these two dates. For example, in 2001, the answer is -, in 2002, the answer is 194, and in years 2003 through 2005, the answer is 365, and finally in 2006, the answer is 15 days. The formula below almost works, but 2001 it came up with a negative number. =MIN(IF(DATE(O1,12,31)<$K$2,0,MIN((DATE(O1,12,31)-$K$2), 365)),IF(DATE(O1,12,31)<$J$2,MIN((DATE(O1,12,31)-$K$2),365),G2- DATE(O1,1,1)+1)) Surely there is a function to handle this sort of thing. Thanks, Bruce |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert number of days into years/months | Excel Discussion (Misc queries) | |||
count number of dates falling in the next seven days | Excel Worksheet Functions | |||
Formula for number of years in 750 days | Excel Discussion (Misc queries) | |||
how do i convert a number of days to years, months & days? | Excel Discussion (Misc queries) | |||
how do I convert a number to number of years, months and days | Excel Worksheet Functions |