Need to count days between two dates. Please help.

Hi everyone,

Is it possible to somehow count the number of days between two days?

Example:

5.May.08 - 22.Nov.07 = 163 days

Thank you!

Roman

iMac, PowerBook, Mac mini, Mac OS X (10.4.11), 2 GB RAM, 768 MB RAM, 512 MB RAM respectively

Posted on Jan 2, 2009 2:56 AM

Reply
5 replies

Jan 2, 2009 5:54 AM in response to jaxjason

Hello Jason

For the simple substraction, it ALWAYS works if we know that there is no embedded time value in the cells.
With embedded time values, the result would be a decimal number and it may be the exact result minus 23:59:59.
With
22 nov 2007 23:59:59
and
5 may 2008
we would get 164.000011574074
which is the decimal value for 164 00h00m01s

To get the same result than DATEDIF() it would be safer to use:
=DATE(YEAR(B);MONTH(B);DAY(B))-DATE(YEAR(A);MONTH(A);DAY(A))

In fact, I wished to push the OP to learn the path to the Help 😉

Yvan KOENIG (from FRANCE vendredi 2 janvier 2009 14:53:18)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Need to count days between two dates. Please help.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.