Correct an Excel Formula for Weekly Timesheet Hours
Question details
Correct a formula that adds daily shift totals to calculate weekly hours.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A weekly timesheet stores daily shift totals in separate cells that need to be added together.
- Observed behavior
- The weekly total appears incorrect because the daily results may be time serials or formula results with a different number format.
Identify the cells containing the daily shift totals and check whether they hold Excel time values or decimal hours. Select a daily total and look at its formula and number format before choosing how to calculate the weekly total.
Sum the daily totals and format the weekly hours
Use this method when the daily totals are Excel time values and the weekly result should appear as hours and minutes.
Select the weekly total cell and enter =SUM(E4,H4,K4,N4,Q4,T4,W4). Replace these references with your actual daily total cells.
Select the weekly total cell, press Ctrl+1, and choose Number > Custom. Enter [h]:mm as the type and click OK so totals over 24 hours display correctly.
Select each daily total cell and inspect its formula in the formula bar. Check that it calculates the intended shift duration and that its number format matches the underlying value.

Convert the weekly total to decimal hours
Use this method when daily totals are Excel time values but the weekly result must be a decimal number of hours.
Calculate weekly timesheet hours in WPS Spreadsheets
Use WPS Spreadsheets to sum daily shift totals and display the result as elapsed hours or decimal hours.
- 1. Open the timesheet: Open WPS Spreadsheets and use Open to select your Excel timesheet.
- 2. Add the daily totals: Select the weekly total cell and enter =SUM(E4,H4,K4,N4,Q4,T4,W4), changing the references to match your sheet.
- 3. Choose the result format: For time values, select the total cell, press Ctrl+1, and choose a custom number format of [h]:mm. For decimal hours, multiply the formula by 24 and apply a Number format instead.
- 4. Save the workbook: Use File > Save As to save the updated timesheet in an Excel format such as XLSX.

Frequently Asked Questions
Why does my weekly total show fewer than 24 hours?
A regular time format can wrap after 24 hours. Select the total cell, press Ctrl+1, and choose Custom > [h]:mm to display accumulated hours.
How do I show 37 hours and 30 minutes as 37.5?
If the daily cells contain Excel time values, multiply their sum by 24, such as =SUM(E4,H4,K4,N4,Q4,T4,W4)*24. Format the result as Number or General.
Should I multiply the total by 24 if my daily cells already show decimal hours?
No. If the underlying daily values are already decimal hours, use SUM without multiplying by 24. Check the cells' formulas and number formats to confirm their units.
Does Excel 2010 support this timesheet formula?
Yes. Excel 2010 supports SUM and the [h]:mm custom format. If results differ from another spreadsheet app, inspect the daily formulas, underlying values, and number formats.




