ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to convert h:mm (46:30) to 46.5 for payroll (https://www.excelbanter.com/excel-worksheet-functions/6874-how-convert-h-mm-46-30-46-5-payroll.html)

tdiermeier

how to convert h:mm (46:30) to 46.5 for payroll
 
I am creating a time card. After totalling hours worked for a week, the sum
is shown as 46:30. 46 hours 30 minutes. How can I change this to be
displayed as 46.5? I have a formula in the cell already
=SUM(E21+G21+I21+K21+M21+O21) The cell itself is formatted as a Custom [h]:m.
Is there another function I can add on the the formula I already have

tjtjjtjt

If your formula is in Cell P21
=P21*24
You'll need to change your Cell Formatting for the Formula cell to General
or some other Non-Time Format.

tj

"tdiermeier" wrote:

I am creating a time card. After totalling hours worked for a week, the sum
is shown as 46:30. 46 hours 30 minutes. How can I change this to be
displayed as 46.5? I have a formula in the cell already
=SUM(E21+G21+I21+K21+M21+O21) The cell itself is formatted as a Custom [h]:m.
Is there another function I can add on the the formula I already have


BenjieLop


tdiermeier Wrote:
I am creating a time card. After totalling hours worked for a week, the
sum
is shown as 46:30. 46 hours 30 minutes. How can I change this to be
displayed as 46.5? I have a formula in the cell already
=SUM(E21+G21+I21+K21+M21+O21) The cell itself is formatted as a Custom
[h]:m.
Is there another function I can add on the the formula I already have


This formula

=(SUM(E21+G21+I21+K21+M21+O21))*24

entered, in say, Cell P21 and formatted as number (2 decimal places)
might work for you.

Hope it helps.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=319219



All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com