Excel To Count hours more than 10000 hours

thunder_anger

Board Regular
Joined
Sep 27, 2009
Messages
206
Dear all

i got help yesterday from MrKowz that saved the day for me
but today there is a question, i know that it is silly but for sure i do not know how to do it

i am dealing with working hours for the annual report that must contain the total hours of work of about 5000 workers all over EGYPT in the branches of the firm i work for
so when i write this value (11253:52) Excel put it as text not like (5559:32) it recognize it as formatted time ([h]:mm)

what shall i do now
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I'm only having a stab in the dark but maybe if you entered 11253:32:00 it might force excel to recognise it as time.

BUT I would have thought that if you are reporting that many hours that the minutes would be pretty immaterial and you could simply show the hours but I don't know how fussy your end-users are :-)
 
Upvote 0
On the other hand ... Excel treats time as a special type of variable and if you add 12 hours to 13 hours you don't get 25 hours you get 1 day and 1 hour ...

.... you may have to actually work with minutes and adjust how you display the result
 
Upvote 0
Excel doesn't recognise time values of 10000:00:00 or over although, as long as the inputs are below that, you can get a formula to return greater values that are valid time values.

To solve your problem you may need to split the times into amounts that are lower than 10000:00:00, whether you can do that possibly depends on exactly what you are doing, can you explain what you are trying to achieve?
 
Upvote 0
To solve your problem you may need to split the times into amounts that are lower than 10000:00:00, whether you can do that possibly depends on exactly what you are doing, can you explain what you are trying to achieve?

All waht i want to do is the following
in cells from A12:A150 i will enter the times that are printed out on papers
11252:56
19652:30
11859:26
21292:56
5226:17
26335:05
11252:10
6652:56
2552:59
etc
all of these are times that our employees have in about 2 years
the purpose behind that is to calculate the cost of every our according to the employee rank and work
but when i came to sum all previous values i couldn't because excel can not calculate after 9999:59:59
any ideas????!!!!!:eeek:
 
Upvote 0
It looks like you can get Excel to convert those to time values, and then use those in sums etc ... like this:




I've done it in 2 columns so that you can see what I'm aiming at.
 
Upvote 0
You could use a single formula like this

=SUM(IF(ISNUMBER(A12:A150+0),A12:A150,RIGHT(A12:A150,7)+LEFT(A12:A150,LEN(A12)-7)*10000/24))

confirmed with CTRL+SHIFT+ENTER

format the result cell as [h]:mm
 
Upvote 0
thanks GlennUK

it works

but this solution is Easier
works like a charm
You could use a single formula like this

=SUM(IF(ISNUMBER(A12:A150+0),A12:A150,RIGHT(A12:A150,7)+LEFT(A12:A150,LEN(A12)-7)*10000/24))

confirmed with CTRL+SHIFT+ENTER

format the result cell as [h]:mm
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

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