Excel Formula: Calculate Overtime for Hours Over 40

Montreal Jul 09, 2026

When it comes to tracking employee hours and calculating overtime, Excel formulas can be a lifesaver. One common scenario is calculating overtime for hours worked over 40 in a week. Let's explore how to achieve this using Excel formulas.

Excel Formula for Overtime over 40 Hours [with Free Template]
Excel Formula for Overtime over 40 Hours [with Free Template]

Before we dive into the formulas, ensure your data is structured correctly. You'll need columns for 'Employee Name', 'Hours Worked', and 'Overtime Hours'. For this article, let's assume your data starts from row 2, with headers in row 1.

overtime Calculation formula in excel
overtime Calculation formula in excel

Calculating Overtime Hours

The first step is to calculate the overtime hours worked by each employee. We'll use the IF function to compare the hours worked with the standard 40-hour workweek.

How to Calculate Over Time in Excel đŸ”¥#excel #shortsvideo #exceltips #tipsntricks #exceltutorial
How to Calculate Over Time in Excel đŸ”¥#excel #shortsvideo #exceltips #tipsntricks #exceltutorial

In cell C2 (assuming 'Hours Worked' is in column B), enter the following formula: `=IF(B2>40, B2-40, 0)`. This formula checks if the hours worked are over 40. If yes, it calculates the overtime hours; if not, it returns 0.

Applying the Formula to the Entire Range

How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy
How to Calculate Hours Worked and Overtime Using Excel Formula - ExcelDemy

To apply this formula to the entire range, click on the small square in the bottom-right corner of cell C2 (called the 'fill handle'), drag it down to copy the formula for all employees.

Your 'Overtime Hours' column should now display the overtime hours worked by each employee, with 0 for those who didn't work overtime.

Calculating Overtime Pay

Top 21 Excel Formulas
Top 21 Excel Formulas

Next, let's calculate the overtime pay. Assume the overtime rate is 1.5 times the regular hourly rate, and the regular hourly rate is in cell D1.

In cell D2, enter the following formula: `=C2*D1*1.5`. This formula multiplies the overtime hours by the overtime rate. Again, use the fill handle to apply this formula to the entire range.

Total Overtime Pay

How To Make overtime calculate formula in excel sheet
How To Make overtime calculate formula in excel sheet

To find the total overtime pay for all employees, use the SUM function. In a cell outside your data range (e.g., E2), enter `=SUM(D2:D100)` (adjust the range as needed). This will give you the total overtime pay for all employees.

You can format this cell as currency for easier reading.

107K views · 1.5K reactions | Calculating Worked Hours Using Formula!! #Excel | Excelling At Excel
107K views · 1.5K reactions | Calculating Worked Hours Using Formula!! #Excel | Excelling At Excel
How to Calculate Hours Worked Minus Lunch Using Excel Formulas (4 Methods) - ExcelDemy
How to Calculate Hours Worked Minus Lunch Using Excel Formulas (4 Methods) - ExcelDemy
How to Calculate Hours Worked in Excel
How to Calculate Hours Worked in Excel
FREE Excel Timesheet Template [DOWNLOAD]
FREE Excel Timesheet Template [DOWNLOAD]
Advanced Excel
Advanced Excel
Excel Formulas: Basic to Advanced
Excel Formulas: Basic to Advanced
How to calculate work hours in Excel
How to calculate work hours in Excel
the top 20 new excel formulas are displayed in this screenshoter's image
the top 20 new excel formulas are displayed in this screenshoter's image
Exel Formulas
Exel Formulas
the excel shortcuts and important formulas are displayed in this green poster, which includes
the excel shortcuts and important formulas are displayed in this green poster, which includes
the top 22 excel formulas
the top 22 excel formulas
Excel Formulas
Excel Formulas
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
3 Crazy Microsoft Excel Formulas That Are Extremely Useful
a screenshot of the workdays formula in excel
a screenshot of the workdays formula in excel
the top 26 excel formulas are displayed in this screenshoter's guide
the top 26 excel formulas are displayed in this screenshoter's guide
a poster with instructions on how to use the excel automation and advanced tools
a poster with instructions on how to use the excel automation and advanced tools
the excel basics for beginners poster is shown in green and white, with instructions on how
the excel basics for beginners poster is shown in green and white, with instructions on how
Excel Functions for Time-based Analysis Credits to Emma Chieppor (Excel Dictionary), follow her for more Excel tips.  ----------- Here's the original post: Top Excel Functions for Time-Based… | Excel Cheatsheets
Excel Functions for Time-based Analysis Credits to Emma Chieppor (Excel Dictionary), follow her for more Excel tips. ----------- Here's the original post: Top Excel Functions for Time-Based… | Excel Cheatsheets
Excel Formula Cheat Sheet Printable - Excel Functions Guide PDF - Excel Reference Sheet Digital Download
Excel Formula Cheat Sheet Printable - Excel Functions Guide PDF - Excel Reference Sheet Digital Download

With these formulas, you can now track and calculate overtime hours and pay in Excel. This not only saves time but also reduces human error in manual calculations. Regularly updating your data will ensure you always have an accurate picture of your overtime expenses.

Remember, it's essential to keep your data organized and formulas up-to-date to maintain the accuracy of your calculations. Happy tracking!