Calculating the difference between each pair of dates listed in columns
A & B.
Solution:
To calculate the difference in days, use the DATEDIF function as shown in the following formula:
=DATEDIF(A2,B2,"d")
To calculate the difference in weeks, use the INT function as shown in the following formula:
=INT((B2-A2)/7)
To calculate the difference in months, use the DATEDIF function as shown in the following formula:
=DATEDIF(A2,B2,"m")
To calculate the difference in years, use one of the following two solutions:
Use the DATEDIF function as shown in the following formula:
=DATEDIF(A2,B2,"y")
OR
Use the YEAR, MONTH, AND, and DAY functions as shown in the following formula:
=YEAR(B2)-YEAR(A2)-(MONTH(B2)
To calculate the number of months over years, use the DATEDIF function as shown in the following formula:
=DATEDIF(A2,B2,"ym")
To calculate the number of days over years, use the DATEDIF function as shown in the following formula:
=DATEDIF(A2,B2,"yd")
Need date formula
Chuck Miller wrote on April 18, 2006 18:23 EST
I am looking for a date formula which will announce "Due to Expire" when a date is 2 months from expiration. Does anyone know of such a formula?
Excluding the weekend
Migdad wrote on December 31, 1969 19:00 EST
Dear,
how can I calculate the days between two dates (Excluding the weekends)
I am working in Saudi Arabia and the weekends over here are Thursday and Friday.
please send me the answer to Migdad@hotmail.com
abc
yogita wrote on December 31, 1969 19:00 EST
how can I calculate the days between two dates (Excluding the sunday only)?
Dates
Kumodi74 wrote on September 21, 2006 07:00 EST
I am looking for a fomula that will calculate the amount of days between 2 dates excluding weekends
Dates
Dee wrote on December 31, 1969 19:00 EST
I am looking for a fomula that will calculate the amount of days between 2 dates excluding weekends
Excluding the weekend
Not Reallyhere wrote on December 31, 1969 19:00 EST
You are a doofus, set your time to a realisic time zone.
counting days between two dates including both
DPS wrote on December 31, 1969 19:00 EST
I am looking for a formula to count all days between two dates including start and end date - currently one of the days is dropped when using the formula.
Terms
and Conditions of use
The applications/code on this site are distributed as is and without warranties
or liability. In no event shall the owner of the copyrights, or the authors
of the applications/code be liable for any loss of profit, any problems
or any damage resulting from the use or evaluation of the applications/code.