×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Counting Days Between Dates

Counting Days Between Dates

Counting Days Between Dates

(OP)
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.

RE: Counting Days Between Dates

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: Eng-Tips.com Forum Policies


RE: Counting Days Between Dates

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.

RE: Counting Days Between Dates

(OP)
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

RE: Counting Days Between Dates

Also you can use the =DATEDIF(T2,U2,"md")function.  Where T2 and U2 have the two dates of interest.

RE: Counting Days Between Dates

Forgot, this will only work within the month use =DATEDIF(T2,U2,"d")for all days.  See other DATEDIF posibilities.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources