Calculation Issues

How to Convert Excel Time Values to Decimal Hours for Payroll

Olivia MillerOlivia Miller Oct 29, 2026 870 views

Question details

The user needs to convert time values (hours and minutes) into decimal hours to process payroll and hourly wages accurately.

How to Convert Excel Time Values to Decimal Hours for Payroll
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the conversion formula

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.

2
Format the cell as a number

Right-click the newly calculated cell and select 'Format Cells'. Alternatively, use the shortcut Ctrl+1.

3
Adjust decimal places

In the Number tab, select the 'Number' category, set the decimal places to 2, and click OK.

4
Apply to remaining rows

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.

Multiply by 24 to Convert Time to Decimal Hours
Why multiply by 24?: Spreadsheets calculate 1 full day as the number 1. Therefore, 1 hour is 1/24 of a day. Multiplying a time value by 24 extracts the exact whole and fractional hours.
Efficient Payroll Management

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. 1. Open your timesheet: Launch WPS Spreadsheet and open your existing payroll or timesheet document.
  2. 2. Apply the time formula: Enter =A2*24 in a new column to convert your logged hours and minutes into decimals.
  3. 3. Format the numbers: Highlight the column, click the Number Format dropdown on the Home tab, and choose 'Number' to display clean decimal hours.
Fully compatible with Microsoft Excel (.xlsx) formats and timesheet templates.Easily apply custom time formats like [h]:mm for seamless rollover past 24 hours.Free and lightweight alternative to heavy standard Office suites.
QA img-9

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.