# What would be the formula for this?

#### msche09

##### New Member
Hey guys,

I am in need of a formula that has the duration in hours and minutes based off of the time lengh in two different cells.

This is an outline of what I currently have:

F8 = 1330 (1:30PM)
G8 = 2200 (10:00PM)
H8 = 8.5 hours (I would need a formula to output this based on F8 and G8)

Any ideas?

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### shg

##### MrExcel MVP
 f​ g​ h​ i​ 8​ 1330​ 2200​ 8.5​ h8: =mod((text(g8, "0\:00") - text(f8, "0\:00")), 1) * 24 9​ 2200​ 1330​ 15.5​

Last edited:

#### mfexcel

##### Well-known Member
Time Conversion (2) | wmfexcel
Do you need TIME? | wmfexcel

Hey guys,

I am in need of a formula that has the duration in hours and minutes based off of the time lengh in two different cells.

This is an outline of what I currently have:

F8 = 1330 (1:30PM)
G8 = 2200 (10:00PM)
H8 = 8.5 hours (I would need a formula to output this based on F8 and G8)

Any ideas?

Replies
4
Views
191
Replies
5
Views
257
Replies
2
Views
412
Replies
5
Views
39
Replies
0
Views
50

1,129,472
Messages
5,636,516
Members
416,922
Latest member
defectexpress

### 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.

### Which adblocker are you using?

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

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