ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Nuber of Days between two Dates (https://www.excelbanter.com/excel-programming/289357-nuber-days-between-two-dates.html)

ExcelMonkey[_32_]

Nuber of Days between two Dates
 
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/


John Wilson

Nuber of Days between two Dates
 
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/




beeawwb[_7_]

Nuber of Days between two Dates
 
=DateDif(date1,date2,"d")

should work? I think.

Hope it helps.

-Bob


---
Message posted from http://www.ExcelForum.com/


Rockee052[_26_]

Nuber of Days between two Dates
 
Hello,

You can check this site as well...

http://support.microsoft.com/default...Product=xl2003

Rockee


---
Message posted from http://www.ExcelForum.com/


Tom Ogilvy

Nuber of Days between two Dates
 
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/




Tom Ogilvy

Nuber of Days between two Dates
 
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/







All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com