If the hours were whole numbers this would be simple but if someone works 40
hours 28 minutes
That would be 40.4666666...
I guess one way would be to have the whole numbers in one column and the
partials in another and then add them both once I convert the partials from
60th's to 100ths
A1 = total time in [h]:mm format as a true Excel time value
B1 = hourly rate
=A1*24*B1
You will probably want to round the result to 2 decimal places:
=ROUND(A1*24*B1,2)
Format as General or Number
--
Biff
Microsoft Excel MVP
"ZenMasta" <m...@nospam.kthx> wrote in message
news:ek3Kwxwj...@TK2MSFTNGP05.phx.gbl...
"T. Valko" <biffi...@comcast.net> wrote in message
news:efHVG6wj...@TK2MSFTNGP02.phx.gbl...
Format as timeformat 37:30:55 if that's an option, or custom format
[hh]:mm:ss, all cells that needs to display >23:59:59.
HTH. Best wishes Harald
"ZenMasta" <m...@nospam.kthx> wrote in message
news:u8w2RFxj...@TK2MSFTNGP05.phx.gbl...
Best wishes Harald
I set custom formatting as [hh]:mm:ss
In the cell it appears as 0:50:11 in the formula bar it appears as 12:50:11
AM
"Harald Staff" <nos...@not.invalid> wrote in message
news:ODQULLxj...@TK2MSFTNGP06.phx.gbl...
Obviously Excel is assuming you entered 50 minutes and 11 seconds. So you
have to convince it otherwise. Try entering 50:11:00 and see if that solves
your problem.
Regards,
Fred
"ZenMasta" <m...@nospam.kthx> wrote in message
news:eJ9HWjxj...@TK2MSFTNGP04.phx.gbl...
I think you mistyped. I get 50:11:00.
Format it as [hh]:mm then type in 50:11. The result should be
01/02/1900 2:11:00 AM. But when you enter (in another cell)
=a1*24 and format it as a number, the result will be 50.18,
which is what you're looking for. That's assuming that the
time is in A1.
If you want to calculate pay but you have to calc overtime you
can have a formula that says =if(b1*24>40,40,round(b1*24,2))
and it'll never show more than 40 (for straight time). Then in
another cell enter =IF(B1*24>40,ROUND(B1*24-40,2),0) and that
will only be time that exceeds 40 hours. Then you can calc pay
rate times straight time hours and time and a half times
overtime hours.
--
Jordon