Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to convert time difference between two times to number (hours/minutes/seconds) in Excel?

Normally, when calculating time difference with subtraction in Excel, you will get the result as hh:mm or hh:mm:ss format. For directly converting time difference to number such as hours/minutes/seconds only after calculating, methods in this article will do you a favor.

Convert time difference to number (hours/minutes/seconds) with formulas

Convert time difference to number (hours/minutes/seconds) with Kutools for Excel


Easily convert time to number (hours/minutes/seconds) in selected range in Excel:

After calculating the time difference which format as hh:mm:ss, the Convert Time utility of Kutools for Excel can help you to quickly convert time to hours, minutes or seconds with only clicks. See screenshot:

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Convert time difference to number (hours/minutes/seconds) with formulas


Please do as follows to convert time difference to number.

Convert time difference to hours

Select a blank cell (in this case, I select C2), enter formula =(B2-A2)*24 into the Formula Bar, and press the Enter key. Then drag the Fill Handle down to get all time differences in hours format. See screenshot:

Convert time difference to minutes

For converting time difference to minutes, please use this formula =(B2-A2)*1440 . See screenshot:

Convert time difference to seconds

This formula =(B2-A2)*86400 can help you directly convert time difference to seconds format as below screenshot shown.

Note: In the above formulas. A2 contains the start time, and B2 contains the end time. You can change them as you need.


Convert time difference to number (hours/minutes/seconds) with Kutools for Excel

If you have already calculated the time differences as hh:mm:ss format, you can use the Convert Time utility of Kutools for Excel to quickly convert all time differences to hours, minutes or seconds with only several clicks.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

1. Select all time difference cells, click Kutools > Content > Convert Time > Time to Hours/Time to Minutes/Time to Seconds. See screenshot:

2. Then a Kutools for Excel dialog box pops up, click the Yes button.

Note: Click the Yes button will remove all formulas in selected cells.

Then the selected time difference will be converted to hours, minutes or seconds immediately based on your selection in step 1.

Note: For keeping formulas in selected cells, please click Kutools > Content > Convert Time > Convert Time. See screenshot:

In the Convert Time dialog box, specify a Convert Type, and then select a destination cell to save the converted results.

Tip.If you want to have a free trial of this utility, please go to download the software freely first, and then go to apply the operation according above steps.


Demo: Convert time difference to number (hours/minutes/seconds) with Kutools for Excel

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!



Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.