Calculating difference in hours and minutes using two cells

OfficeUser

Well-known Member
Joined
Feb 4, 2010
Messages
542
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello, I have two cells using this format: m/d/yy h:mm AM/PM and I am trying to figure out the time difference between them to show for example 13h42m in a seperate cell. Any help is appreciated. Thanks!!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try this:

Book1
EFG
4date and timecustom format
5begin10/17/21 5:55 AMm/dd/yy h:mm AM/PM
6end10/17/21 2:51 PMm/dd/yy h:mm AM/PM
7
8difference (days)0.371846296
9difference (hors ,minutes)22h:11mh"h":mm"m"
Sheet1
Cell Formulas
RangeFormula
F6F6=NOW()
F8F8=F6-F5
F9F9=(F6-F5)*24
 
Upvote 0
Use this formula...

=F6-F5

and Custom Format that cell using this pattern (exactly as shown)...

[h]\hm\m
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top