Forum Discussion

Gaedupe's avatar
Gaedupe
Copper Contributor
Dec 03, 2021

How do I use excel to calculate the difference between two dates

Help me with the formula for calculating the difference in minutes between two dates

8 Replies

  • Gaedupe 

    Let's say you have dates in A1 and B1.

    In C1, enter the formula

     

    =1440*(B1-A1)

     

    and format C1 as General (or as Number)

    Explanation: Excel stores dates and times as numbers, with 1 day as unit. 1 day = 24*60 minutes = 1440 minutes.

  • rreiser68's avatar
    rreiser68
    Copper Contributor

    You can use the DATEDIF function.  If your dates are entered in cells A3 and A5 you can use the formula DATEDIF(A3,A5).  

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        rreiser68 

        =DATEDIF(A3,A5,"D") is more complex equivalent of =INT(A5)-INT(A3) if we speak about datetime, and returns difference in days, not in minutes as it was asked.

Resources