A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

calculating number of days between two dates



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2003, 10:25 PM
sandy
external usenet poster
 
Posts: n/a
Default calculating number of days between two dates

On an Excel spreadsheet, how do I calculate the nubmer of
days between two dates? I previously used the DAYS360
function, but now I need to calculate based on a 365-day
year.
  #2  
Old September 16th, 2003, 11:16 PM
James S
external usenet poster
 
Posts: n/a
Default calculating number of days between two dates

Try using the DATEDIF function. An example would be:

=DATEDIF("9/16/2003","9/21/2003","D")

Should return "5". The formula is:
=DATEDIF(StartDate, EndDate, Unit)
Where "Unit" is "D" for days, "M" for months, etc.

Hope that helps.

Regards,
James S

-----Original Message-----
On an Excel spreadsheet, how do I calculate the nubmer of
days between two dates? I previously used the DAYS360
function, but now I need to calculate based on a 365-day
year.


  #3  
Old September 17th, 2003, 01:02 AM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default calculating number of days between two dates

On Tue, 16 Sep 2003 14:25:48 -0700, "sandy" wrote:

On an Excel spreadsheet, how do I calculate the nubmer of
days between two dates? I previously used the DAYS360
function, but now I need to calculate based on a 365-day
year.



Simply subtract one from the other. If the later date is in A2, and the
earlier date in A1, then =A2-A1.


--ron
  #4  
Old September 17th, 2003, 04:23 AM
Myrna Larson
external usenet poster
 
Posts: n/a
Default calculating number of days between two dates

If you've entered the data in a format that Excel recognizes as a date (rather than text), just
subtract, i.e. =B1-A1.

BTW, DAYS360 is primarily for bond trades and other financial calculations.

On Tue, 16 Sep 2003 14:25:48 -0700, "sandy" wrote:

On an Excel spreadsheet, how do I calculate the nubmer of
days between two dates? I previously used the DAYS360
function, but now I need to calculate based on a 365-day
year.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.