Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default 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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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/





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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/





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
Calc days between two dates and exclude leap year days scoz Excel Worksheet Functions 5 November 23rd 07 03:58 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
fHow to write in a formula "if a nuber s between these two numbers FreddieP Excel Discussion (Misc queries) 11 September 30th 06 02:35 PM
Function to calculate the nuber of weeks between dates? Fish Excel Worksheet Functions 4 March 13th 06 10:55 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM


All times are GMT +1. The time now is 04:50 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"