Time calc involving two days

oomfh

Board Regular
Joined
Feb 17, 2011
Messages
141
I know how to create time calc formulas during the same date - but not when you cross (midnight) into a second date.

Any quick examples would be greatly appreciated . . . . .

I assume there's a formula that covers both scenarios?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I know how to create time calc formulas during the same date - but not when you cross (midnight) into a second date.

Any quick examples would be greatly appreciated . . . . .

I assume there's a formula that covers both scenarios?
Try this...

A1= 5:00 PM
B1 = 1:00 AM

=MOD(B1-A1,1)

Format as h:mm
 
Upvote 0
Ugh, I am now correctly calculating hours worked for each individual - but the sum of the "hours worked" column is not resulting in h:mm.

The entire column including the sum is in "13:30" time format . . .

:(
 
Upvote 0
Ugh, I am now correctly calculating hours worked for each individual - but the sum of the "hours worked" column is not resulting in h:mm.

The entire column including the sum is in "13:30" time format . . .

:(
If you have a SUM(...) formula then format that cell as [h]:mm.

The brackets [ ] will keep the hours from rolling over into days.

A1 = 13:00 (h:mm format)
A2 = 12:00 (h:mm format)

With no special formatting applied to the formula cell:

=SUM(A1:A2) = 1:00

With the format of [h]:mm applied:

=SUM(A1:A2) = 25:00
 
Upvote 0
Now I need to divide $0.00 by h:mm, i.e.,

$263.30/12:15 to get $21.49 . . . but I am gettting $5.16

In other words I need the 12 hrs 15 mins to be interpreted as 12.25
 
Upvote 0
You will need to multiply the 12:15 by 24.

12:15 is actually .510417 since Excel sees a 24 hour period as 1
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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