Time format display problem - Excel 2010

NeilF

Board Regular
Joined
Sep 4, 2007
Messages
100
I know this problem is occurring because I don't have the correct cell format, but I can't find the one I need...

I have a model which I'm using to calculate elapsed time, in hours, between 2 times. I also have a lunch break, expressed in minutes, which I want to deduct from the answer.

My model has the following columns (with their formats listed):-

A - date
B - start time (format - Custom, type "h:mm AM/PM")
C - finish time (format - Custom, type "h:mm AM/PM")
D - lunch (format - Custom - "hh:mm")
E - total hours to pay (hours) =C2-B2-D2 (format - Custom, type "hh:mm")

My problem is when I come to total column E (Total hours to pay).

I want my total to appear in hours and minutes, and the format for the cell with the total formula is (format - Custom, type "hh:mm") - the same as the rows above the total.

When I have a small number of hours to total, I get the result I want:-

eg. 05:30 + 05:30 + 05:30 = 16:30.

But when I have a larger number, the result seems to be presented in days, despite the formatting being the same:-

eg. 05:25 + 05:40 + 03.30 + 05.15 + 05:25 = 01:15

whereas I want the result to read 25:15


What am I doing wrong...?

Thanks

Neil
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try [h]:mm for the format of the cell with the sum.
 
Upvote 0
Yes, that worked Norie. Many thanks.

Out of interest, what does the [h] bit mean, and how is it normally used?

Thanks again.

Neil
 
Upvote 0
Neil

Honest answer, I don't know what it's called and I've only every seen it used with time values.

I'm sure it's used elsewhere though.:)
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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