Master 3 ADVANCED TRICKS to ADD HOURS in Excel! Learn custom format, SUMIF, and calculate extra hours. Includes a PRACTICAL EXAMPLE and solutions to common errors. Find out more!
Follow these steps to add hours correctly:
- Format the cells as TIME:
- Select the cells
- Right-click → “Format Cells”
- Choose “Time” → Select the format 13:30:55
- Use the normal SUM function:excel=SUM(B2:B10)
- If it exceeds 24 hours:
- Change the format to:text[h]:mm:ss
- This will correctly display totals greater than 24 hours

🔥 3 ADVANCED TRICKS to ADD HOURS
1. Add hours and minutes with custom format
excel
=TEXT(SUM(B2:B10)/24,"[h]:mm")
2. Add hours with a condition (using SUMIF)
excel
=SUMIF(A2:A10,"Morning shift",B2:B10)
3. Calculate overtime (greater than 8 hours)
excel
=IF(B2>TIME(8,0,0), B2-TIME(8,0,0), TIME(0,0,0))
⚠️ COMMON PROBLEMS and SOLUTIONS
| Problem | Solution |
|---|---|
| Shows ###### | Increase the column width |
| A decimal number appears | Change the format to time |
| Doesn’t add correctly | Verify that all values are valid times |
| Shows unwanted AM/PM | Change the format to 24 hours |
📊 PRACTICAL EXAMPLE: Time Tracking
| Employee | Clock-In Time | Clock-Out Time | Hours Worked |
|---|---|---|---|
| Juan | 8:30 | 17:15 | =B2-A2 |
| María | 9:00 | 18:30 | =B3-A3 |
| Total | =SUM(C2:C3) |
💡 Tip: To calculate pay, multiply by the hourly rate:
excel
=C2*24*15 (if the hourly rate is $15)
👇 Do you have a specific case? Leave your question in the comments! 💻⏱️