Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I calc the number of days between two dates? I know that in
excel there is a days360 function but I thinkg this assumed 12 months at 30 days each. I have a startdate and and an end date. I want to subtract the two and then calc # of days. --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel Monkey,
Take a look he http://www.cpearson.com/excel/datedif.htm John "ExcelMonkey " wrote in message ... How do I calc the number of days between two dates? I know that in excel there is a days360 function but I thinkg this assumed 12 months at 30 days each. I have a startdate and and an end date. I want to subtract the two and then calc # of days. --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=DateDif(date1,date2,"d")
should work? I think. Hope it helps. -Bob --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
You can check this site as well... http://support.microsoft.com/default...Product=xl2003 Rockee --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dates are stored as an elapsed number of days from a common base date. So
if you subtract the latest date from the earliest day, the result will be the number of days. ? datevalue("Jan 24, 2004") - DateValue("01/27/2002") 727 The above is shown in VBA, but in the worksheet if the values were in A1 and A2 it would be =A1-A2 -- Regards, Tom Ogilvy ExcelMonkey wrote in message ... How do I calc the number of days between two dates? I know that in excel there is a days360 function but I thinkg this assumed 12 months at 30 days each. I have a startdate and and an end date. I want to subtract the two and then calc # of days. --- Message posted from http://www.ExcelForum.com/ |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Got tongue Tied - subtract the start date from the end date - should be
clearer. -- Regards, Tom Ogilvy Tom Ogilvy wrote in message ... Dates are stored as an elapsed number of days from a common base date. So if you subtract the latest date from the earliest day, the result will be the number of days. ? datevalue("Jan 24, 2004") - DateValue("01/27/2002") 727 The above is shown in VBA, but in the worksheet if the values were in A1 and A2 it would be =A1-A2 -- Regards, Tom Ogilvy ExcelMonkey wrote in message ... How do I calc the number of days between two dates? I know that in excel there is a days360 function but I thinkg this assumed 12 months at 30 days each. I have a startdate and and an end date. I want to subtract the two and then calc # of days. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calc days between two dates and exclude leap year days | Excel Worksheet Functions | |||
Conditional Formatting Dates calculating 10 days and 30 days from a certain date | Excel Worksheet Functions | |||
fHow to write in a formula "if a nuber s between these two numbers | Excel Discussion (Misc queries) | |||
Function to calculate the nuber of weeks between dates? | Excel Worksheet Functions | |||
Calculating number of days between two dates that fall between two other dates | Excel Discussion (Misc queries) |