Kerrick Sawyers said:
Need a little help:
Trying to calculate the number of days between two dates
formatted as mm/dd/yy hh:mm:ss. Any help would be greatly
appreciated. Thanks!
Kindest regards,
Kerrick
For date pure and simple (not including times), just subtract the earlier
date from the later, and format the result as a number (or general). That's
the number of days difference.
Dates in Excel are stored as numbers of days since 31st Dec 1899 (so 1st Jan
1900 is 1). Today (7th Oct 2003) is 37901, as you can see by putting
=TODAY() in a cell and formatting as a number.
Times are just fractions of a day. So 6am today would be 37901.25.
Hence, when you subtract dates/times, such as midday yesterday (37900.5)
from 6am today (37901.25), your result will be 0.75. If necessary, that is
if you just want a whole number of days, you may want to consider truncating
or rounding as appropriate.