Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Days Between Dates

Status
Not open for further replies.

RockEngineer

Structural
May 29, 2002
267
Is there a function or macro that will tell me the number of days between any two dates. I have readings on several dates and am trying to get the average per day between those dates.

Thanks.
 
Replies continue below

Recommended for you

Just subtract one from the other. Dates are stored as floating point numbers in Excel. End result is number of whole and fractional days

TTFN

FAQ731-376


 
Simply use a formula where you subtract the older date from the more recent date and format the cell with the formula as a number.
 
Thanks. I forgot to reformat the answer cell as a number and it was frustrating me and giving back a wierd date as the answer.[reading]
 
Also you can use the =DATEDIF(T2,U2,"md")function. Where T2 and U2 have the two dates of interest.
 
Forgot, this will only work within the month use =DATEDIF(T2,U2,"d")for all days. See other DATEDIF posibilities.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor