search
HomeTopicsexcelSharing practical Excel skills: It turns out that calculating overtime pay is so easy!

In the previous article " Practical Excel skills sharing: three tricks to fill in alternate rows, the tricks are exciting and full of style! ", we learned about the method of filling in alternate rows. Today we are going to talk about Excel table statistics and share with you a tutorial. Excel beginners can use the method of adding auxiliary columns. Friends who are proficient in Excel can directly use the function formula method. It can be done in one second. It is not too simple. !

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

The specific rules for overtime pay are: the start and end times of overtime are based on the attendance record, and the overtime pay is 120 yuan per hour. Less than 30 minutes will not be calculated, and more than 30 minutes will not be calculated. One hour is calculated as 30 minutes (0.5 hours).

According to the above billing rules, we can add auxiliary columns to convert overtime hours and then calculate the cost. So how to convert and calculate overtime pay based on the start and end time in accordance with regulations is what we are going to learn today. First, let’s take a look at the format of the overtime statistics table:

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

Table Columns A to D are basic information, and the data can be obtained through the attendance machine. Columns E to I are calculated by formulas, which is what we focus on learning today. Let’s take a look at how each column is obtained.

1. Calculation of overtime hours

The formula is: =HOUR(D3-C3)

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

A time function HOUR is used here to extract the hour digit from the data obtained from column D minus column C. For example, D3-C3=2 hours and 15 minutes, you can use the HOUR function to get the result. 2.

2. Calculation of overtime minutes

The formula is: =MINUTE(D3-C3)

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

Similar to the HOUR function, MINUTE can extract the minute digit of the data obtained by subtracting column C from column D. For example: D3-C3=2 hours and 15 minutes. The MINUTE function can get the result 15.

Through these two formulas, we divide the overtime time into two parts according to hours and minutes. The next thing we need to do is to convert the minutes in 30-minute units according to the company's overtime regulations.

3. Minutes conversion

The calculation formula is: =FLOOR(F3,30)

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

A function FLOOR that rounds by a specified multiple is used here. The function requires two parameters, and the basic format is: FLOOR (the value to be rounded, the multiple to be rounded). Let’s take a simple example to see the effect of the function: =FLOOR(M2,3)

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

The formula changes a set of values ​​in column M according to 3 Rounding is performed by multiples of , and N columns are obtained. If it is less than 1 times 3, it will be rounded off and 0 will be returned; if it is 1 times but less than 2 times, it will be rounded to 3; if it is 2 times but less than 3 times, it will be rounded to 6, and so on.

Similarly, when we convert overtime minutes, we must use 30 minutes as the standard for rounding. The second parameter of the function is naturally 30. If it is less than 30, it will be zero. If it is greater than or equal to 30 and less than 60, it will return 30.

Through the above three steps, we have obtained the number of overtime hours and converted minutes. Next, we need to calculate the overtime hours used for billing.

4. Overtime billable hours

Calculation formula: =E3 G3/60

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

Here G3/60 means converting the converted minutes into hours.

5. Calculation of overtime pay

Formula: =H3*120

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

The calculation of overtime pay is very simple, just use overtime hours × 120.

Some friends may find the above method a bit troublesome. In order to calculate the overtime hours, three auxiliary columns are used. Can the overtime hours be calculated directly?

Of course, this requires the use of a very powerful function TEXT, the formula is: =FLOOR(TEXT(D3-C3,"[m]")/60,0.5)

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

The auxiliary column method is suitable for novices, and the idea is relatively simple. Although using the TEXT function simplifies the calculation steps, the formula is more difficult. Let me briefly explain the meaning of this formula.

TEXT(D3-C3,"[m]") This part displays the time difference in minute format, and the result is shown in column G. The TEXT function can convert a numerical value into text in a specified format. [m] This format code indicates that the elapsed time is displayed in minutes, and any less than one minute is rounded off. The most mysterious thing about the TEXT function is that it can use numerous format codes to obtain various display results.

Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!

After understanding this, the following will be easy to understand. Divide the minutes by 60 to convert them into hours, and then use the FLOOR function to round the hours by a multiple of 0.5. , you get the overtime hours.

Summary:

1. In today’s example, we used two time functions HOUR and MINUTE. These two functions are often used in attendance calculations. Yes, the function is also very easy to understand;

2. When calculating the time difference, you can directly subtract;

3. I believe that many friends may be exposed to the FLOOR function for the first time. When encountering rounding by a fixed multiple, it is very convenient to use this function;

4. Come into contact with the application of the TEXT function in time calculation. This is a very important knowledge point. If you are familiar with this function If you are interested, you can leave a message. We will publish some tutorials on the usage of this function in the future.

That’s it for today’s tutorial. Do you know how to calculate overtime pay? Whether it is adding an auxiliary column or directly using a function formula, it is actually very simple. As long as you practice more, you will soon master it, and you will no longer have to worry about calculating overtime pay!

Related learning recommendations: excel tutorial

The above is the detailed content of Sharing practical Excel skills: It turns out that calculating overtime pay is so easy!. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)