Professional Documents
Culture Documents
HTML CSS
Menu Log in
Learn how to find the difference between two times using Excel.
Read more about 86400 in the How to Convert Time to Seconds Chapter
Dark mode
D k d
Dark code
How
toHTML
find CSS
the difference between two times?
In this example, we will find the seconds between 14:00(A2) Time A and 16:00(A3)
Time B.
Copy Values
Info:
Excel can change the format when you use the 86400 number.
Make sure to change the format back to number if it changes to time format.
Dark mode
D k d
Dark code
Step 2) Convert
HTMLtime CSS
to seconds:
Let us multiply the time by 86400.
Select cell C2
Calculation
Select cell F9
Dark mode
D k d
Deduct Time B from Time A to find the difference.
Dark code
HTML CSS
Use the converted seconds to calculate (the numbers in Column C).
Calculation
C3(57600) - C2(50400) = 7200 Seconds
Calculation
F9(7200) / G2(60) = 120 Minutes
Dark mode
D k d
Dark code
HTML CSS
Calculation
Good job!
You have successfully found the time between two times, 14:00 and 16:00 .
Dark mode
D k d
Dark code
In this case, the right answer was 7200 Seconds or 120 Minutes or 2 hours .
HTML CSS
❮ Previous Next ❯
NEW
We just launched
W3Schools videos
Explore now
COLOR PICKER
Get certified
by completing
a course today!
Dark mode
D k d
Dark code
HTML CSS w3
school
s
2
CE
02
TI 2
R
FI .
ED
Get started
CODE GAME
Play Game
Report Error
Spaces
Pro
Buy Certificate
Dark mode
D k d
Dark code
HTML CSS
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
W3.CSS Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples
Get Certified
HTML Certificate
CSS Certificate
JavaScript Certificate
SQL Certificate
Python Certificate
Dark mode
D k d
PHP Certificate
Dark code
HTML CSS jQuery Certificate
Java Certificate
C++ Certificate
C# Certificate
XML Certificate
FORUM |
ABOUT
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and
learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant
full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use,
cookie and privacy policy.