How to Convert Excel Time Values to Decimal Hours for Payroll
Question details
The user needs to convert time values (hours and minutes) into decimal hours to process payroll and hourly wages accurately.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Calculating payroll where hours worked are logged in standard time formats (like 8:30) but need to be converted to decimal formats (like 8.5) to multiply against hourly pay rates.
- Observed behavior
- Time is currently formatted and calculated as a fraction of a day, which causes incorrect wage calculations unless converted to decimal or custom text formats.
Verify whether your specific payroll software requires hours logged as decimals (e.g., 8.5) or strictly exact hours and minutes (e.g., 8:30) before applying the conversion formula.
Multiply by 24 to Convert Time to Decimal Hours
Because spreadsheet software stores time as a fraction of a 24-hour day, multiplying the time cell by 24 converts it into standard decimal hours for easy wage calculation.
This method is the standard approach for calculating gross pay where hours worked must be multiplied by a monetary hourly wage rate.
Select a blank cell adjacent to your time value. Assuming your time logged is in cell A2, type the formula =A2*24 and press Enter.
Right-click the newly calculated cell and select 'Format Cells'. Alternatively, use the shortcut Ctrl+1.
In the Number tab, select the 'Number' category, set the decimal places to 2, and click OK.
Click the converted cell, grab the small square fill handle in the bottom-right corner, and drag it down to apply the calculation to your entire timesheet.

Use the TEXT Function to Display Total Accumulated Hours
If you just need to calculate or display a total accumulated time exceeding 24 hours in a standard hours-and-minutes format, use the TEXT function.
Calculate Payroll Accurately with WPS Spreadsheet
WPS Spreadsheet makes time conversion and payroll calculation incredibly straightforward, fully supporting all major time and date functions used in Microsoft Excel.
- 1. Open your timesheet: Launch WPS Spreadsheet and open your existing payroll or timesheet document.
- 2. Apply the time formula: Enter =A2*24 in a new column to convert your logged hours and minutes into decimals.
- 3. Format the numbers: Highlight the column, click the Number Format dropdown on the Home tab, and choose 'Number' to display clean decimal hours.

Frequently Asked Questions
Why am I getting a weird time like '12:00 AM' when I multiply by 24?
This happens because the cell retains the 'Time' formatting instead of updating to a standard number format. Right-click the cell, select 'Format Cells', and change the category to 'Number' or 'General' to see the proper decimal value.
How do I calculate gross pay after converting to decimal hours?
Once you have your decimal hours (e.g., 8.5 in cell B2) and your hourly pay rate (e.g., $20 in cell C2), simply multiply them together in a new cell using the formula =B2*C2.
Does WPS Spreadsheet use the exact same time formulas as Excel?
Yes, WPS Spreadsheet natively supports the exact same time formulas and formatting rules. Multiplying by 24 or using the TEXT function for custom time displays will work flawlessly.




