{"id":16730,"date":"2026-02-12T07:52:29","date_gmt":"2026-02-12T07:52:29","guid":{"rendered":"https:\/\/www.analyticsinhr.com\/?p=16730"},"modified":"2026-05-14T11:58:05","modified_gmt":"2026-05-14T11:58:05","slug":"human-resources-formulas-and-functions","status":"publish","type":"post","link":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/","title":{"rendered":"Human Resources Formulas and Functions in Excel (Plus Free Template)"},"content":{"rendered":"\n<p>Even with all the HR tech out there, spreadsheets are still everywhere. One recent report found <a href=\"https:\/\/www.techradar.com\/pro\/almost-all-firms-are-still-reliant-on-spreadsheets-is-it-time-for-change\" target=\"_blank\" rel=\"noreferrer noopener\">90% of organizations<\/a><strong> <\/strong>still rely on spreadsheets for some of their most vital business data. And while people analytics is clearly on HR\u2019s agenda, many teams are still building the basics, with <a href=\"https:\/\/www.crunchr.com\/app\/uploads\/2023\/10\/HRdotcom-Crunchr-State-of-HR-Report.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">only 22%<\/a> saying they\u2019re very or extremely effective at getting value from people analytics today.<\/p>\n\n\n\n<p>That\u2019s where Excel earns its keep. It is not a replacement for your <a href=\"https:\/\/www.aihr.com\/blog\/human-resources-information-system-hris\/\">HRIS<\/a> or advanced analytics tools, but for day-to-day tracking, quick checks, and ad hoc reporting, it\u2019s hard to beat. For HR teams, that often means faster answers on headcount, hiring progress, time-to-fill, training completion, absence trends, and simple cost checks.<\/p>\n\n\n\n<p>The better you get at Excel formulas and functions, the faster you can answer practical questions like \u201cWhat changed?\u201d, \u201cWhere are the outliers?\u201d, and \u201cWho needs attention?\u201d You\u2019ll also get more value from your HR systems by understanding what the dashboards are actually showing and by being able to validate the numbers behind them.<\/p>\n\n\n\n<p>With that in mind, this guide shares some of the most common Human Resources formulas, tools, and functions in Excel, with examples you can use right away.<\/p>\n\n\n\n<p><em>Contents<\/em><br><a href=\"#Dates\">Working with dates<\/a><br><a href=\"#Formatting\">Formatting tables<\/a><br><a href=\"#PivotTables\">Working with pivot tables<\/a><br><a href=\"#Formulas\">Common Human Resources formulas and metrics<\/a><br><a href=\"#Template\">HR Excel formulas practice template<\/a><br><a href=\"#ChatGPT\">ChatGPT prompts for HR in Excel<\/a><\/p>\n\n\n<div class=\"gaihrpl gaihrpl-2\"><div class=\"gaihrpl-single aaihrpl-169\"><a class=\"gofollow\" data-track=\"MTY5LDIsNjAw\" href=\"https:\/\/www.aihr.com\/courses\/people-data-business-insights-certification\/?il_id=banner&#038;il_name=dbcp&#038;il_creative=dbcp-value&#038;il_position=slot2\" target=\"_blank\" rel=\"nofollow\" style=\"display:block;padding-top:20px;\"><img decoding=\"async\" src=\"https:\/\/www.aihr.com\/wp-content\/plugs\/podcast-blog-ads-fade.jpg\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/DBCP-Banner-10a.png 360w, https:\/\/www.aihr.com\/wp-content\/uploads\/DBCP-Banner-10a.png 360w, https:\/\/www.aihr.com\/wp-content\/uploads\/DBCP-Banner-10a.png 700w, https:\/\/www.aihr.com\/wp-content\/plugs\/ w\" sizes=\"(max-width: 480px) 360px, (max-width: 960px) 360px, (max-width: 1280px) 700px, 750px\" style=\"box-shadow: 0px 0px 20px 5px rgb(46 61 73 \/ 15%);display: block;margin: auto; border-radius:19px;\" class=\"small_ad\" \/><\/a>\r\n<br><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"Dates\">Working with dates<\/h2>\n\n\n\n<p>Let\u2019s start with some commonly used date management functions.<\/p>\n\n\n\n<p>Excel stores dates as sequential serial numbers, starting with 1, with January 1, 1900, at 00:00 AM. March 16, 2021, is 44271 because it is the 44,271<sup>st<\/sup> day since Excel\u2019s date system starts.<\/p>\n\n\n\n<p>Values less than a day are stored as decimal fractions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"257\" height=\"60\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Date-in-Excel.png\" alt=\"Date function\" class=\"wp-image-16731\"\/><\/figure>\n<\/div>\n\n\n<p>Excel offers many ways to store, compare, and compute dates and times. There are 16 standard date formats, and custom formatting rules give you even more control over the display. To choose a format, right-click a cell (or range), select a date format, or choose Custom to see more options.<\/p>\n\n\n\n<p>Before we start calculating dates, let\u2019s see how we can enter today\u2019s date\u2014even if we don\u2019t know what it is.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using the TODAY() function<\/h3>\n\n\n\n<p>The TODAY function is a time-saving shortcut. It retrieves today\u2019s date from your computer, so it updates automatically. Your worksheets update when you open or recalculate them.<\/p>\n\n\n\n<p>If you need the current date and time, use NOW().<\/p>\n\n\n\n<p>The function is handy for calculating things like age, time in service, or any case where the period you are using lacks a specific end. For example, if you want to calculate an employee\u2019s age, you can subtract the employee\u2019s birthdate from today. We start by formatting the column to display years instead of a serial number or date.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-Cell-Today-Function.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"215\" height=\"376\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-Cell-Today-Function.png\" alt=\"Format cells\" class=\"wp-image-16732\" style=\"width:161px;height:282px\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Format-Cell-Today-Function.png 215w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-Cell-Today-Function-172x300.png 172w\" sizes=\"auto, (max-width: 215px) 100vw, 215px\" \/><\/a><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\">\n<li>Right-click the Age column header. The Format Cells window will open.<\/li>\n\n\n\n<li>Select <strong>Format Cells\u2026<\/strong><\/li>\n\n\n\n<li><strong>Custom<\/strong> opens the options; then you type \u201c<strong>yy<\/strong>\u201d (no quotes) in the <strong>Type<\/strong> field.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong>.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Date-Functions.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"484\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Date-Functions.png\" alt=\"TODAY function\" class=\"wp-image-16733\" style=\"width:399px;height:363px\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Date-Functions.png 532w, https:\/\/www.aihr.com\/wp-content\/uploads\/Date-Functions-300x273.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Date-Functions-510x464.png 510w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Finding the difference between two dates<\/h3>\n\n\n\n<p>Some of the things we do most frequently in HR measure the difference between two dates. We use those calculations for many reasons, including basics like the age of employees, time in service, benefits eligibility, pensions, and seniority.<\/p>\n\n\n\n<p>There are many ways to calculate the difference. How you calculate them depends on your company\u2019s practices, industry sector, and country or region.<\/p>\n\n\n\n<p>We\u2019ll give you four that we find useful and easy to use:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>DATEDIF function<\/strong><\/h4>\n\n\n\n<p>Excel DATEDIF returns the difference between two date values in years, months, or days. The DATEDIF (Date + Dif) function is a <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/datedif-function-25dba1a4-2812-480b-84dd-8b32a451b35c\" target=\"_blank\" rel=\"noreferrer noopener\">&#8220;compatibility&#8221; function from Lotus 1-2-3<\/a>.<\/p>\n\n\n\n<p><strong>=DATEDIF(start_date, end_date, unit)<\/strong><\/p>\n\n\n\n<p><strong>Unit Values<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cy\u201d years<\/li>\n\n\n\n<li>\u201cm\u201d months<\/li>\n\n\n\n<li>\u201cd\u201d days<\/li>\n\n\n\n<li>\u201cym\u201d months, ignoring years<\/li>\n\n\n\n<li>\u201cyd\u201d days, ignoring years and months<\/li>\n<\/ul>\n\n\n\n<p>We can calculate years, months, and days using these formulas:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"68\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/DATEDIF-Function.png\" alt=\"DATEDIF function\" class=\"wp-image-16739\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Function.png 762w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Function-300x27.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Function-510x46.png 510w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/figure>\n\n\n\n<p>To give us this result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"66\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/DATEDIF-Results.png\" alt=\"DATEDIF function results\" class=\"wp-image-16740\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Results.png 761w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Results-300x26.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Results-510x44.png 510w\" sizes=\"auto, (max-width: 761px) 100vw, 761px\" \/><\/figure>\n\n\n\n<p>Here is the same method using years, months, and days in a single cell:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"115\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/DATEDIF-Duration.png\" alt=\"DATEDIF function results\" class=\"wp-image-16741\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Duration.png 687w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Duration-300x50.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/DATEDIF-Duration-510x85.png 510w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>DAYS360 function<\/strong><\/h4>\n\n\n\n<p>Our Gregorian calendar makes things difficult for accountants, so they invented the 360-day year with 30 days in each month to create a tidy framework.<\/p>\n\n\n\n<p>Although the Securities and Exchange Commission (SEC) does not accept it for formally published financial accounts, the <a href=\"https:\/\/www.investopedia.com\/terms\/c\/commercial-year.asp\" target=\"_blank\" rel=\"noreferrer noopener\">360-day Commercial Year is widely used<\/a> to simplify interest calculations and internal valuations in business worldwide. Two accepted standards are the US (NASD) method and the European method.<\/p>\n\n\n\n<p>The syntax is:<\/p>\n\n\n\n<p><strong>=DAYS360(start_date, end_date, method)<\/strong><\/p>\n\n\n\n<p>where method indicates a 360-day standard: FALSE for the US method and TRUE for the European method.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/days360-function-b9a509fd-49ef-407e-94df-0cbda5718c2a\" target=\"_blank\" rel=\"noreferrer noopener\">In the US method<\/a>, if a starting date is the last day of the month, it becomes the 30<sup>th<\/sup> day of the month. If the ending date is the last day of a month and the starting date is earlier than the 30<sup>th<\/sup> day of a month, the ending day is equal to the 1<sup>st<\/sup> day of the next month. Otherwise, the ending day becomes equal to the 30<sup>th<\/sup> of the same month.<\/li>\n\n\n\n<li><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/days360-function-b9a509fd-49ef-407e-94df-0cbda5718c2a\" target=\"_blank\" rel=\"noreferrer noopener\">In the European method<\/a>, starting and ending dates on the 31<sup>st<\/sup> of the month equal the 30<sup>th<\/sup> of the month. How\u2019s that for tidy?<\/li>\n<\/ul>\n\n\n\n<p><strong><em>Caution:<\/em><\/strong><\/p>\n\n\n\n<p>Dates must be either derived from another function or entered using the DATE format:<\/p>\n\n\n\n<p><strong>DATE(yyyy,m,d) <\/strong>where<strong> DATE(2021,3,11) <\/strong>is March 11, 2021.<\/p>\n\n\n\n<p>If start_date is after end_date, DATEDIF returns a #NUM! error.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>YEARFRAC function<\/strong><\/h4>\n\n\n\n<p>If you want to calculate the difference between two dates as years and fractions of years, YEARFRAC will do it for you. The parameters for the function are the start date, end date, and basis, where the basis is 0 to 4:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>Basis values<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">0 (or omitted)<\/td><td class=\"has-text-align-center\" data-align=\"center\">US (NASD) 30\/360<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">1<\/td><td class=\"has-text-align-center\" data-align=\"center\">Actual\/actual<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">2<\/td><td class=\"has-text-align-center\" data-align=\"center\">Actual\/360<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">3<\/td><td class=\"has-text-align-center\" data-align=\"center\">Actual\/365<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">4<\/td><td class=\"has-text-align-center\" data-align=\"center\">European 30\/360<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Here&#8217;s the function itself:<br>&nbsp;&nbsp;<strong>=YEARFRAC(start_date, end_date,[basis])<\/strong><\/p>\n\n\n\n<p>If you use YEARFRAC and the TODAY() function, it will always be correct.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"178\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/YEARFRAC.png\" alt=\"YEARFRAC function\" class=\"wp-image-16743\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/YEARFRAC.png 969w, https:\/\/www.aihr.com\/wp-content\/uploads\/YEARFRAC-300x55.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/YEARFRAC-768x141.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/YEARFRAC-510x94.png 510w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>NETWORKDAYS function<\/strong><\/h4>\n\n\n\n<p>NETWORKDAYS is a handy function for managing projects, schedules, or any time you need to calculate a span of workdays that includes holidays.<\/p>\n\n\n\n<p><strong>=NETWORKDAYS(start_date, end_date, holidays)<\/strong><\/p>\n\n\n\n<p>Here\u2019s how we most often set up our holiday schedules. We create a worksheet named Holidays that contains the dates and names of holidays, then:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select cell range $A$2:$A$10.<\/li>\n\n\n\n<li>Click <strong>Define Name<\/strong>. The New Name window will open.<\/li>\n\n\n\n<li>Type \u201cHolidays\u201d in the <strong>Name<\/strong> field.<\/li>\n\n\n\n<li>Click OK.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/NETWORKDAYS.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"505\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/NETWORKDAYS.png\" alt=\"NETWORKDAYS function\" class=\"wp-image-16744\" style=\"width:551px;height:379px\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/NETWORKDAYS.png 735w, https:\/\/www.aihr.com\/wp-content\/uploads\/NETWORKDAYS-300x206.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/NETWORKDAYS-510x350.png 510w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Then, we can enter a NETWORKDAYS function anywhere in a workbook like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"124\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/NETWORKDAYS-Result.png\" alt=\"NETWORKDAYS function results\" class=\"wp-image-16750\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/NETWORKDAYS-Result.png 320w, https:\/\/www.aihr.com\/wp-content\/uploads\/NETWORKDAYS-Result-300x116.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n<\/div>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"lazyblock-one-two-Z1MBA9v wp-block-lazyblock-one-two\"><div class=\"gutenberg-quote-columns one_column\">\n\t<div class=\"gutenberg-quote-column\">\n\t\t      \n\t\t     \t\t\t\t\t     <div class=\"gutenberg-quote-column-content\"><h3>Master HR formulas and functions to maximize your efficiency<\/h3>\n<p data-start=\"400\" data-end=\"689\">If you&#8217;re using Excel to track HR metrics, now\u2019s the time to go beyond the basics. Learn how to clean data, use formulas and pivot tables to analyze trends, and turn people data into insights that drive strategic decisions.<\/p>\n<p data-start=\"691\" data-end=\"924\">AIHR\u2019s <a href=\"https:\/\/www.aihr.com\/courses\/people-data-business-insights-certification\/?il_id=ctr&amp;il_name=emoji-box-and-link-in-article&amp;il_position=none\">People Data &amp; Business Insights Certificate Program<\/a> teaches you how to build dashboards in Excel and Power BI, connect data to business outcomes, and confidently translate metrics into impactful stories leaders understand.<\/p>\n<p data-start=\"926\" data-end=\"966\">\ud83d\udcca Want to see what the program is like?<\/p>\n<p><span style=\"font-weight: 400;\">\u00a0<\/span><b>Preview real lessons before you enroll \u2014 <\/b>an<span style=\"font-weight: 400;\">d know exactly what to expect.<\/span><b><br \/><\/b><\/p>\n<div style=\"text-align: center;\">\n<div class=\"wp-block-button has-custom-font-size has-medium-font-size\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" style=\"border-radius: 5px; background-color: #30206b; padding: 15px 30px; font-size: 18px;\" href=\"https:\/\/www.aihr.com\/demo-portal\/preview-lessons\/people-data-business-insights-certification\/?il_id=ctr&amp;il_name=emoji-box-and-button-in-article&amp;il_position=none\" target=\"_blank\" rel=\"noopener\" data-darkreader-inline-bgcolor=\"\">PREVIEW COURSE LESSONS<\/a><\/div>\n<\/div><\/div>\n              \n\t<\/div>\n\t \n<\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"Formatting\">Formatting tables<\/h2>\n\n\n\n<p>Before we begin working with lookup formulas, let\u2019s discuss how to format employee tables so your functions and procedures work consistently. Tables also reduce formula errors when rows get added, removed, or reordered, which is common in HR tracking sheets.<\/p>\n\n\n\n<p>Every table should have a primary key. In Structured Query Language (SQL), a column or set of columns serves as a unique identifier. In Excel, we want the primary key to be a single column that identifies each data row.<\/p>\n\n\n\n<p>If you work with employee information, the key is almost always the Employee ID. Placing it in the first (left-most) column in every worksheet that lists individual employees makes VLOOKUP, INDEX, MATCH, and INDEX-MATCH functions much easier to manage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Format as Table function<\/h3>\n\n\n\n<p>We like to name our tables and arrays to make them easier to use. A quick way to do that is to use the Excel <strong>Format as Table<\/strong> function.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Make sure your table is <em>contiguous<\/em>, with no gaps between columns or rows.<\/li>\n\n\n\n<li>From the Home tab, click in the top left-most cell (A1).<\/li>\n\n\n\n<li>Click on the <strong>Format as Table<\/strong> <strong>drop-down<\/strong>. The design panel will open.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"127\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-as-Table-1024x127.png\" alt=\"Table\" class=\"wp-image-16752\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-1024x127.png 1024w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-300x37.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-768x95.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-510x63.png 510w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table.png 1058w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Click on the design you want. The table form will open, displaying the table range and indicating whether your table has headers. You will want headers, so if you don\u2019t have them, go back and reformat your table.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"151\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-as-Table-Headers.png\" alt=\"Table data\" class=\"wp-image-16753\"\/><\/figure>\n<\/div>\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>Click&nbsp;<strong>OK<\/strong>. Your table will be automatically formatted.<\/li>\n\n\n\n<li>Give the table a name that makes sense to you. You can now use the table name in functions and formulas.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"224\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-as-Table-Name.png\" alt=\"Table name\" class=\"wp-image-16754\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-Name.png 390w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-Name-300x172.png 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/figure>\n<\/div>\n\n\n<p>You can also use a keyboard shortcut to create tables.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Highlight your entire table.<\/li>\n\n\n\n<li>Press Ctrl + T<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"257\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Format-as-Table-Shortcut.png\" alt=\"Table formatting\" class=\"wp-image-16755\" style=\"width:409px;height:257px\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-Shortcut.png 409w, https:\/\/www.aihr.com\/wp-content\/uploads\/Format-as-Table-Shortcut-300x189.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/figure>\n<\/div>\n\n\n<p>You can then format it any way you like.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Filtering data<\/h3>\n\n\n\n<p>If you follow along in an Excel worksheet, you probably noticed that your tables automatically have filters. Filters are amazing time-savers when you want to slice and dice data. They can also be useful when you want to validate the data in a table.<\/p>\n\n\n\n<p>Suppose you needed to follow up on outstanding performance appraisals. You have a report listing all your employees and their appraisal status.<\/p>\n\n\n\n<p>You could sort the worksheet by status and copy and paste the ones you need to follow up on, but it is easier to filter by the status you want to follow up on. In this example, we want to find all the appraisals that have not been started.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the <strong>filter drop-down icon.<\/strong><\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"94\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filter-Dropdown.png\" alt=\"Filter drop down\" class=\"wp-image-16756\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Dropdown.png 762w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Dropdown-300x37.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Dropdown-510x63.png 510w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Clear the form by clicking on the <strong>(Select All) <\/strong>checkbox.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"440\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filters-Clear.png\" alt=\"Filters\" class=\"wp-image-16757\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Filters-Clear.png 268w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filters-Clear-183x300.png 183w\" sizes=\"auto, (max-width: 268px) 100vw, 268px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Select <strong>Not Started<\/strong>, then<strong> OK.<\/strong><\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"266\" height=\"247\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filter-Apply.png\" alt=\"Filters use\" class=\"wp-image-16758\"\/><\/figure>\n<\/div>\n\n\n<p>Here is what your filtered table would look like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"395\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filter-Results.png\" alt=\"Filtered table\" class=\"wp-image-16759\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Results.png 886w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Results-300x134.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Results-768x342.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Results-510x227.png 510w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/figure>\n\n\n\n<p>You can use multiple filters in various combinations based on the column&#8217;s data type. Number filters have many combinations, as do dates.<\/p>\n\n\n\n<p>Now imagine you need a list of people hired between January 1, 2016, and December 31, 2018.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click on the <strong>Date of Hire<\/strong> column filter. A list of filter options will open.<\/li>\n\n\n\n<li>Select the <strong>Date Filters<\/strong> option. You now get a long list of filtering options.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"482\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filter-Date-of-Hire.png\" alt=\"Date filters\" class=\"wp-image-16760\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Date-of-Hire.png 436w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filter-Date-of-Hire-271x300.png 271w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Select <strong>Between<\/strong> and fill in the date parameters.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filters-Between.png\" alt=\"Filter parameters\" class=\"wp-image-16762\"\/><\/figure>\n\n\n\n<p>Your report is ready:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"417\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Filtered-Report.png\" alt=\"Filtered report\" class=\"wp-image-16764\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Filtered-Report.png 882w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filtered-Report-300x142.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filtered-Report-768x363.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Filtered-Report-510x241.png 510w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"PivotTables\">Working with pivot tables<\/h2>\n\n\n\n<p id=\"video\">Of all the features, functions, and tools in Excel, pivot tables are among the most useful. They are dynamic summary reports you generate from a database, a table in a worksheet, an external data file, or an external database.<\/p>\n\n\n<p><center><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/uUQlNHHCcF0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/center><\/p>\n<p style=\"text-align: center;\"><em>Check out our video to find out how you can use Pivot Tables for Excel!<\/em><\/p>\n\n\n<p>PivotTables let you turn any data source into a flexible summary report in a few clicks. You can then slice and dice, summarize and combine, and manipulate data in just about any way you can imagine. This is a practical way to summarize trends like turnover reasons, absence categories, or training completion by department.<\/p>\n\n\n\n<p>We will show you how to create a termination reasons report by department. You can get a copy of the dataset we are using on <a href=\"https:\/\/www.kaggle.com\/datasets\/rhuebner\/human-resources-data-set\" target=\"_blank\" rel=\"noreferrer noopener\">Kaggle<\/a> (<a href=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2019\/10\/human-resources-data-set.zip\" target=\"_blank\" rel=\"noreferrer noopener\">mirror download<\/a>).<\/p>\n\n\n\n<p>Here\u2019s how to create a report from any worksheet:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, we click in the <strong>top-left cell (A1)<\/strong> in a contiguous table of employee data. A good data sample will have the employee number, a value unique to each individual, in column A.<\/li>\n\n\n\n<li>We click on the <strong>Insert<\/strong> menu.<\/li>\n\n\n\n<li>Then, we click on the <strong>PivotTable<\/strong> icon. The <strong>Create PivotTable<\/strong> form will open.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"464\" height=\"331\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-1.png\" alt=\"Pivot table\" class=\"wp-image-16765\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-1.png 464w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-1-300x214.png 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>&nbsp;Excel automatically selects our entire table of data.<\/li>\n\n\n\n<li>We select <strong>New Worksheet<\/strong> to tell Excel where to put the table.<\/li>\n\n\n\n<li>Then, click <strong>OK<\/strong>.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"313\" height=\"277\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-2.png\" alt=\"Pivot table worksheet\" class=\"wp-image-16766\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-2.png 313w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-2-300x265.png 300w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li>A new tab will open with a blank pivot table on the left and the PivotTable Fields form on the right. Do housekeeping first by renaming the tab so you can find it later.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"825\" height=\"337\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-3.png\" alt=\"Pivot table creation\" class=\"wp-image-16767\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-3.png 825w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-3-300x123.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-3-768x314.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-3-510x208.png 510w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/figure>\n\n\n\n<ol start=\"8\" class=\"wp-block-list\">\n<li>In the <strong>PivotTable Fields<\/strong> form, drag <strong>Date of Termination<\/strong> to the <strong>Values <\/strong>section, giving us a numerical value for the table to count.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"352\" height=\"737\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-4.png\" alt=\"Pivot table fields\" class=\"wp-image-16768\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-4.png 352w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-4-143x300.png 143w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"9\" class=\"wp-block-list\">\n<li>We also drag <strong>Department<\/strong>, <strong>Employee<\/strong> <strong>Name<\/strong>, <strong>Position<\/strong>, and <strong>Date of Term<\/strong> to the <strong>Rows <\/strong>section.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"313\" height=\"720\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-5.png\" alt=\"Pivot table fields\" class=\"wp-image-16769\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-5.png 313w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-5-130x300.png 130w\" sizes=\"auto, (max-width: 313px) 100vw, 313px\" \/><\/figure>\n<\/div>\n\n\n<p>At this point, the table will start to take shape, but it may look a bit messy at first. We\u2019ll fix that now.<\/p>\n\n\n\n<ol start=\"10\" class=\"wp-block-list\">\n<li>Click anywhere in the table, then click on Design. The design menu appears.<\/li>\n\n\n\n<li>Click on Report Layout.<\/li>\n\n\n\n<li>We click on <strong>Show in Tabular Form<\/strong>. It starts to make sense, but we don\u2019t need a subtotal in the Employee Name column.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"290\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-6-1024x290.png\" alt=\"Pivot table layout\" class=\"wp-image-16770\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-6-1024x290.png 1024w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-6-300x85.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-6-768x218.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-6-510x145.png 510w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-6.png 1030w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol start=\"13\" class=\"wp-block-list\">\n<li>Right-click in the <strong>Employee Name<\/strong> column and click on <strong>Subtotal \u201cEmployee Name\u201d<\/strong> to uncheck it. We do the same with the <strong>Position <\/strong>column.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"296\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-7.png\" alt=\"Pivot table filters\" class=\"wp-image-16771\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-7.png 649w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-7-300x137.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-7-510x233.png 510w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n<\/div>\n\n\n<p>We now have a neat table showing the number of terminations and reasons for each department.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"281\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-Result.png\" alt=\"Pivot table results\" class=\"wp-image-16772\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Result.png 990w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Result-300x85.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Result-768x218.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Result-510x145.png 510w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n\n\n\n<p>There is just a little cleanup to do. Some of the column names are a bit long and confusing. We can enter new names directly into the column headers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"229\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-Columns.png\" alt=\"Pivot table cleanup\" class=\"wp-image-16773\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Columns.png 832w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Columns-300x83.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Columns-768x211.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Columns-510x140.png 510w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/figure>\n\n\n\n<p><strong>One more thing:<\/strong><\/p>\n\n\n\n<p>Let us explain why this tool is called a pivot table.<\/p>\n\n\n\n<p>In the <strong>PivotTable Fields<\/strong> form, we <span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">select the&nbsp;<strong>Department<\/strong>&nbsp;field and drag it to the&nbsp;<strong>Filters&nbsp;<\/strong>section to&nbsp;<em>pivot<\/em>&nbsp;it from a row field to a filter, allowing us to<\/span> change the report to show a single department or any combination.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"301\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-8.png\" alt=\"Pivot table edit\" class=\"wp-image-16774\"\/><\/figure>\n<\/div>\n\n\n<p>Now, we\u2019ll try another pivot. We right-click on the <strong>Reason<\/strong> field, hover on <strong>Move<\/strong>, then click on <strong>Move \u201cReason\u201d to Beginning<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"446\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-9.png\" alt=\"Pivot table edit\" class=\"wp-image-16775\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-9.png 522w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-9-300x256.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-9-510x436.png 510w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/figure>\n<\/div>\n\n\n<p>We now have a report on reasons for termination.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"685\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-Report.png\" alt=\"Pivot table report\" class=\"wp-image-16776\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Report.png 580w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Report-254x300.png 254w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Report-510x602.png 510w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Pivot table columns<\/h3>\n\n\n\n<p>If we wanted to see the reasons for the terminations summarized for each department, we could use columns to show the departments.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"341\" height=\"221\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-10.png\" alt=\"Pivot table columns\" class=\"wp-image-16777\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-10.png 341w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-10-300x194.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/figure>\n<\/div>\n\n\n<p>Let\u2019s remove the report\u2019s names and positions to reduce clutter, then drag the department to the Columns section. We now have a summary report, but it\u2019s not very useful.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"687\" height=\"379\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-11.png\" alt=\"Pivot table summary report\" class=\"wp-image-16778\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-11.png 687w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-11-300x166.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-11-510x281.png 510w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/figure>\n<\/div>\n\n\n<p>Let\u2019s change the way we summarize the data. Right-click in the Grand Total cell and select <strong>Show Values As<\/strong>, then <strong>% of Grand Total<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-12.png\" alt=\"Pivot table grand total\" class=\"wp-image-16779\"\/><\/figure>\n<\/div>\n\n\n<p>After we use the Grand Total cell to format the numbers as a Percent with no decimals, we have a report that tells us something about where we might need an intervention.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"386\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Pivot-Table-Final.png\" alt=\"Pivot table final report\" class=\"wp-image-16780\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Final.png 777w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Final-300x149.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Final-768x382.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Pivot-Table-Final-510x253.png 510w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/figure>\n<\/div>\n\n\n<p>We\u2019ve given you only a quick introduction to the power of pivot tables. We hope it whets your appetite to learn more.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Formulas\">Common Human Resources formulas and metrics<\/h2>\n\n\n\n<p>Excel has hundreds of formulas that can help HR work faster, but a few stand out because they support the <a href=\"https:\/\/www.aihr.com\/blog\/hr-metrics-examples\/\">HR metrics<\/a> that come up again and again in reporting and decision-making.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cost of benefits and employee programs<\/h3>\n\n\n\n<p>Calculating benefits (including employee programs) helps you understand what you spend beyond base pay and build a more complete view of employee cost. These numbers also feed into other internal metrics and budgeting conversations.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Benefits costs per employee<\/strong><\/h4>\n\n\n\n<p>Benefits cost per employee is the total spend on benefits and employee programs divided by the average number of employees.<\/p>\n\n\n\n<p><strong>\u201cbenefits_cost = total_cost_of_benefits_and_programs \u00f7 average_number_of_employees<\/strong><\/p>\n\n\n\n<p>This helps you compare benefit spend across teams or time periods. You can calculate it per month, quarter, or year for comparisons over time.\u201d<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Benefits and programs as a percent of pay<\/strong><\/h4>\n\n\n\n<p>This ratio shows benefits cost relative to payroll.<\/p>\n\n\n\n<p><strong>benefits_ratio = cost_of_benefits \u00f7 total_pay&nbsp;<\/strong><\/p>\n\n\n\n<p>This makes it easier to benchmark benefit load against payroll.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Total employee cost<\/strong><\/h4>\n\n\n\n<p>Once you have the benefits ratio, you can estimate total employee cost (pay plus benefits) like this:<\/p>\n\n\n\n<p><strong>total_employee_cost = (1 + benefits_ratio) \u00d7 total_pay&nbsp;<\/strong><\/p>\n\n\n\n<p>This gives you a quick \u2018all-in\u2019 cost estimate for budgeting and scenario planning.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Revenue<\/h3>\n\n\n\n<p>In HR, we sometimes get so focused on cost that we forget to show our business impact. We recommend partnering with managers and leaders throughout the business to answer the most important questions when making a change or implementing an intervention. They are: What moved? By how much?<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Revenue per employee<\/strong><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.aihr.com\/blog\/revenue-per-employee\/\">Revenue per employee<\/a> is a simple way to connect people data with business performance. Pull top-line revenue from your financial reports and divide it by the average number of employees.<\/p>\n\n\n\n<p><strong>revenue_per_employee = top_line_revenue \u00f7 average_number_of_employees<\/strong><\/p>\n\n\n\n<p>Use average headcount for the period so you don\u2019t overstate or understate the metric when hiring ramps up or down.\u201d<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Tenure and turnover<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-employee-tenure\"><strong>Employee tenure<\/strong><\/h4>\n\n\n\n<p>You can calculate <a href=\"https:\/\/www.aihr.com\/hr-glossary\/employee-tenure\/\">tenure<\/a> using hire date and today\u2019s date, then take the average across employees.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Format your list as a table.<\/li>\n\n\n\n<li>Create a new column next to Hire Date named Tenure. Then, enter the formula in the top cell.<br><strong>=yearfrac([hire_date],today())<\/strong><\/li>\n\n\n\n<li>In the Number menu group, format the value using the <strong>comma <\/strong>icon (Accounting format).<\/li>\n\n\n\n<li>In the Table Design tab, check the Total Row checkbox. The view will jump to the bottom row.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"150\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Tenure-1.png\" alt=\"Human resources formula for tenure\" class=\"wp-image-16781\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Tenure-1.png 384w, https:\/\/www.aihr.com\/wp-content\/uploads\/Tenure-1-300x117.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/figure>\n<\/div>\n\n\n<ol start=\"5\" class=\"wp-block-list\">\n<li>In the Tenure column, select the <strong>Average<\/strong> function.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"208\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Tenure-2.png\" alt=\"Tenure average\" class=\"wp-image-16782\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Talent acquisition metrics<\/h3>\n\n\n\n<p>Recruiting costs are a critical business metric. You need to know how much time it takes and what it costs to hire talent. Then, you can compare those costs against what you spend on <a href=\"https:\/\/www.aihr.com\/blog\/measuring-employee-engagement\/\" target=\"_blank\" rel=\"noreferrer noopener\">employee engagement<\/a>, retention, and development.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Time to fill a vacancy<\/strong><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.aihr.com\/blog\/what-is-time-to-fill\/\">Time to fill<\/a> measures the number of workdays it takes to source, select, and hire. When the pipeline slows down, costs can climb quickly: overtime, workload strain, and delays to business outcomes.<\/p>\n\n\n\n<p>An inefficient pipeline can cause costs to grow out of control, and the impact is much more than the cost of operating the recruiting function. Your people must cover the vacancy, and you may incur overtime costs. There will be additional stress on the people who cover it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"120\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Time-to-Fill-Formula.png\" alt=\"Human resources formula for time to fill\" class=\"wp-image-16783\"\/><\/figure>\n<\/div>\n\n\n<p>First, we define a table named \u201cHolidays\u201d to use as a NETWORKDAYS function parameter.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Cost per hire<\/strong><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.aihr.com\/blog\/cost-per-hire\/\">Cost per hire<\/a> includes covering the vacancy, the direct costs of advertising and hiring, and the cost of managers and recruiters in the process. Here\u2019s a sample breakdown of the talent acquisition cost, along with the respective HR formulas.<\/p>\n\n\n<div class=\"lazyblock-aihr-table-ZFpSsF wp-block-lazyblock-aihr-table\"><div class=\"gutenberg-table-holder\">\n    <div class=\"gutenberg-table-inner\">\n\t    <div class=\"gutenberg-table-item\">\n             \t\t\t                                 \t\t\t\t\t\t\t\t\t\t<div class=\"gutenberg-table-item-header\" style=\"background-color:#b0e7ff\">\n\t\t\t\t\t\t\t\t\t\t\t   <div class=\"gutenberg-table-item-header-single\" style=\"width:50%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\tCost\t\t\t\t\t\t\t\t\t\t\t   <\/div>\n\t\t\t\t\t\t\t\t\t\t\t   <div class=\"gutenberg-table-item-header-single\" style=\"width:50%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\tFormula\t\t\t\t\t\t\t\t\t\t\t   <\/div>\n\t\t\t\t\t\t\t\t\t   <\/div>\n\t\t\t\t\t\t\t\t     \n\t\t\t\t\t\t\t\t\t <div class=\"gutenberg-table-item-content   have-header-table\">\n                                                                                                                    <div class=\"gutenberg-table-item-content-item\" style=\"border-color:#b0e7ff\">\n                                                                                                                                                                                            <div class=\"gutenberg-table-item-content-single\" style=\"width:50%; border-color:#b0e7ff\"   header-item=\"Cost\" >\n                                                                                                    <p>Cost of covering a vacancy<\/p>                                                                                                <\/div>\n                                                                                                                                                                                                                                                                                        <div class=\"gutenberg-table-item-content-single\" style=\"width:50%\"   header-item=\"Formula\" >\n                                                                                                    <p>salary X days_to_fill + allocated overtime<\/p>                                                                                                <\/div>\n                                                                                                                                                                <\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t                                                                     <div class=\"gutenberg-table-item-content-item\" style=\"border-color:#b0e7ff\">\n                                                                                                                                                                                            <div class=\"gutenberg-table-item-content-single\" style=\"width:50%; border-color:#b0e7ff\"   header-item=\"Cost\" >\n                                                                                                    <p>Recruiter time to source, screen, and interview candidates<\/p>                                                                                                <\/div>\n                                                                                                                                                                                                                                                                                        <div class=\"gutenberg-table-item-content-single\" style=\"width:50%\"   header-item=\"Formula\" >\n                                                                                                    <p>(Recruiter_hourly_pay + benefits_ratio) \u00d7 hours<\/p>                                                                                                <\/div>\n                                                                                                                                                                <\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t                                                                     <div class=\"gutenberg-table-item-content-item\" style=\"border-color:#b0e7ff\">\n                                                                                                                                                                                            <div class=\"gutenberg-table-item-content-single\" style=\"width:50%; border-color:#b0e7ff\"   header-item=\"Cost\" >\n                                                                                                    <p>Manager time to interview, evaluate, and select candidates<\/p>                                                                                                <\/div>\n                                                                                                                                                                                                                                                                                        <div class=\"gutenberg-table-item-content-single\" style=\"width:50%\"   header-item=\"Formula\" >\n                                                                                                    <p>(Manager_hour_pay + benefits_ratio) \u00d7 hours<\/p>                                                                                                <\/div>\n                                                                                                                                                                <\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t                               <\/div>\n               \t\t\t   \t\t\t   \t\t<\/div>   \n\t<\/div>\n<\/div>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\"><strong>Yield ratio<\/strong><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.aihr.com\/blog\/yield-ratio\/\">Yield ratio<\/a> helps you understand efficiency at each stage of the pipeline. It measures how many applicants move from one step to the next.<\/p>\n\n\n\n<p><strong>yield_ratio = applicants_at_step \u00f7 applicants_at_previous_step<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Hiring velocity<\/strong><\/h4>\n\n\n\n<p>Time to fill and hiring velocity are not the same.&nbsp;Time to fill is the total time required for the process, whereas hiring velocity looks at the speed of movement between steps. This matters because slowdowns can lead to candidate drop-off (including ghosting). Track velocity alongside yield ratio to spot where the process stalls.<\/p>\n\n\n\n<p>You can track velocity along with your yield ratio. Here are the formulas.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"129\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/2021\/03\/Hiring-Velocity-1.png\" alt=\"Human resources formula for hiring velocity\" class=\"wp-image-16785\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Hiring-Velocity-1.png 1000w, https:\/\/www.aihr.com\/wp-content\/uploads\/Hiring-Velocity-1-300x39.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/Hiring-Velocity-1-768x99.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/Hiring-Velocity-1-510x66.png 510w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>And the result. We calculated the total time to fill in the last column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"162\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-1024x162.png\" alt=\"\" class=\"wp-image-231801\" style=\"width:866px;height:auto\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-1024x162.png 1024w, https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-300x47.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-768x121.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-1536x243.png 1536w, https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-2048x324.png 2048w, https:\/\/www.aihr.com\/wp-content\/uploads\/formulas-excel-510x81.png 510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"lazyblock-aihr-read-next-dPw9M wp-block-lazyblock-aihr-read-next\"><div class=\"gutenberg-read-next\">\n\t    <div class=\"gutenberg-read-next-container\">\n\t\t\t  \t\t\t      <a href=\"https:\/\/www.aihr.com\/resources\/51-hr-metrics-cheat-sheet\/\">\n                        \t\t\t\t\t        <span>GET THE RESOURCE<\/span>\n                         \n\t\t\t\t\t    <span class=\"post-link\">\n\t\t\t\t\t\t  51 HR Metrics Cheat Sheet\t\t\t            <\/span>\n\t\t\t       <\/a>\n                \n\t    <\/div>\n<\/div><\/div>\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Template\">HR Excel formulas practice template<\/h2>\n\n\n\n<p>We\u2019ve created a free, editable HR Excel template so you can practice some of the formulas in this guide without building a dataset from scratch. It comes with a sample employee table and pre-filled formula examples you can reuse in your own reporting.<\/p>\n\n\n<div class=\"wp-block-image pin-image\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a4a32fabe361&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a4a32fabe361\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"806\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-1024x806.png\" alt=\"Preview of the HR Excel Formulas practice template in Excel.\" class=\"wp-image-327562\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-1024x806.png 1024w, https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-300x236.png 300w, https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-768x605.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-1536x1210.png 1536w, https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-2048x1613.png 2048w, https:\/\/www.aihr.com\/wp-content\/uploads\/hr-excel-formulas-510x402.png 510w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background has-medium-font-size has-custom-font-size wp-element-button\" style=\"border-radius:5px;background-color:#30206b\">GET HR EXCEL TOOLKIT <i class=\"fas fa-arrow-up-right-from-square\"><\/i><\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ChatGPT\">ChatGPT prompts for HR in Excel<\/h2>\n\n\n\n<p>If you use Excel for day-to-day HR tracking and quick reporting, ChatGPT can help you get to the right formula faster. Below are a few examples from our ChatGPT for Excel one-pager, split into beginner and advanced prompts. These are just a sample, so if you want the full list of prompts and outputs, you can <a href=\"#PDF\">download a handy PDF<\/a> right below this section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-beginner-prompts\">Beginner prompts<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-count-values-candidate-pipeline\">Count values (candidate pipeline)<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cIn my Excel sheet, candidate status is in column D. Write a formula to count how many candidates have status \u2018Hired\u2019.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong><code> =COUNTIF(D:D, \"Hired\")<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Counts how many times \u201cHired\u201d shows up in column D.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-combine-data-from-multiple-cells-into-a-single-cell\">Combine data from multiple cells into a single cell<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cFirst name is in column B and last name in column C. Write a formula to combine them into full names.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong> <code>=CONCATENATE(B2, \" \", C2)<\/code> or <code>=B2 &amp; \" \" &amp; C2<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Joins the first and last name into one full name, with a space in between.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-check-for-missing-values\">Check for missing values<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cBonus data is in column F. Write a formula to return \u2018Missing\u2019 if empty, \u2018OK\u2019 if filled.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong> <code>=IF(ISBLANK(F2), \"Missing\", \"OK\")<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Flags blank bonus cells so you can spot missing data fast.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced prompts<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-calculate-averages\">Calculate averages<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cSalary is in column E, department in D. Write a formula to get average salary for HR only.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong> <code>=AVERAGEIFS(E:E, D:D, \"HR\")<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Averages salaries only for rows where the department is HR.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-rank-values\">Rank values<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cPerformance scores are in column G. Write a formula to rank each employee.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong> <code>=RANK.EQ(G2, G:G, 0)<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Ranks each score against the full list, highest score gets rank 1.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-look-up-with-xlookup\">Look up with XLOOKUP<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Prompt:<\/strong> \u201cID is in column A, department in D. Write an XLOOKUP formula to find the department based on ID in A2.\u201d<\/li>\n\n\n\n<li><strong>Output:<\/strong> <code>=XLOOKUP(A2, A:A, D:D)<\/code><\/li>\n\n\n\n<li><strong>What it does:<\/strong> Finds the employee ID in column A and returns the matching department from column D.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image pin-image\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a4a32fabf2ad&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a4a32fabf2ad\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"1024\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-741x1024.png\" alt=\"An overview of sample ChatGPT for Excel prompts for HR with output examples.\" class=\"wp-image-285306\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-741x1024.png 741w, https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-217x300.png 217w, https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-768x1061.png 768w, https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-1111x1536.png 1111w, https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog-510x705.png 510w, https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-for-Excel-Prompts-for-HR-Professionals-Blog.png 1170w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\" id=\"PDF\"><a class=\"wp-block-button__link has-background has-medium-font-size has-custom-font-size wp-element-button\" href=\"https:\/\/www.aihr.com\/wp-content\/uploads\/ChatGPT-Prompts-for-Excel-for-HR.pdf?il_id=in-article&amp;il_name=ChatGPT-Prompts-for-Excel-PDF&amp;il_position=none\" style=\"border-radius:5px;background-color:#30206b\">GET HR EXCEL TOOLKIT <i class=\"fas fa-arrow-up-right-from-square\"><\/i><\/a><\/div>\n<\/div>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Over to you<\/h3>\n\n\n\n<p>Excel formulas are not just spreadsheet shortcuts. They\u2019re your starting point for faster analysis, better decisions, and more strategic conversations across your organization. Use them to explore your data with confidence, spot patterns, and back your HR instincts with numbers.<\/p>\n\n\n\n<p>The more you apply them to your real-world challenges\u2014whether that\u2019s tracking turnover, identifying high performers, or analyzing training impact\u2014the more confident and capable you\u2019ll become in using Excel to drive smarter HR decisions.<\/p>\n\n\n<div class=\"gaihrpl gaihrpl-39\"><div class=\"gaihrpl-single aaihrpl-316\"><a class=\"gofollow\" data-track=\"MzE2LDM5LDYwMA==\" href=\"https:\/\/www.aihr.com\/hr-career-map\/?il_id=special&#038;il_name=hr-career-map&#038;il_creative=purple&#038;il_position=slot3\" target=\"_blank\" rel=\"nofollow\" style=\"display:block;padding-top:20px;\"><img decoding=\"async\" src=\"https:\/\/www.aihr.com\/wp-content\/plugs\/podcast-blog-ads-fade.jpg\" srcset=\"https:\/\/www.aihr.com\/wp-content\/uploads\/HR-Career-Map-3.png 360w, https:\/\/www.aihr.com\/wp-content\/uploads\/HR-Career-Map-3.png 360w, https:\/\/www.aihr.com\/wp-content\/uploads\/HR-Career-Map-3.png 700w, https:\/\/www.aihr.com\/wp-content\/plugs\/ w\" sizes=\"(max-width: 480px) 360px, (max-width: 960px) 360px, (max-width: 1280px) 700px, 750px\" style=\"box-shadow: 0px 0px 20px 5px rgb(46 61 73 \/ 15%);display: block;margin: auto; border-radius:19px;\" class=\"small_ad\" \/><\/a>\r\n<br><\/div><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even with all the HR tech out there, spreadsheets are still everywhere. One recent report found 90% of organizations still rely on spreadsheets for some of their most vital business data. And while people analytics is clearly on HR\u2019s agenda, many teams are still building the basics, with only 22% saying they\u2019re very or extremely&hellip;<\/p>\n","protected":false},"author":2845,"featured_media":328418,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"article-template.php","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[114,117],"tags":[147,204,151],"class_list":["post-16730","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-hr-analytics","tag-ainhr","tag-human-resource-formulas","tag-human-resources-analytics","category-114","category-117","description-off"],"acf":[],"featured_image_src":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","author_info":{"display_name":"John W. McCoy","author_link":"https:\/\/www.aihr.com\/blog\/author\/john-mccoy\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Human Resources Formulas &amp; Functions in Excel (+ Free Template) - AIHR<\/title>\n<meta name=\"description\" content=\"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Human Resources Formulas and Functions in Excel (Plus Free Template)\" \/>\n<meta property=\"og:description\" content=\"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts\/16730\" \/>\n<meta property=\"og:site_name\" content=\"AIHR\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/analyticsinhr\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-12T07:52:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-14T11:58:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2500\" \/>\n\t<meta property=\"og:image:height\" content=\"1307\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"John W. McCoy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AnalyticsinHR\" \/>\n<meta name=\"twitter:site\" content=\"@AnalyticsinHR\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John W. McCoy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"25 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/\"},\"author\":{\"name\":\"John W. McCoy\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#\\\/schema\\\/person\\\/d4d00bf60a171b03ff2af054a7371e7d\"},\"headline\":\"Human Resources Formulas and Functions in Excel (Plus Free Template)\",\"datePublished\":\"2026-02-12T07:52:29+00:00\",\"dateModified\":\"2026-05-14T11:58:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/\"},\"wordCount\":3408,\"publisher\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/Human-Resources-Formulas-and-Functions-Thumbnail.png\",\"keywords\":[\"AinHR\",\"human resource formulas\",\"human resources analytics\"],\"articleSection\":[\"Articles\",\"HR Analytics and Data-Driven HR\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/\",\"name\":\"Human Resources Formulas & Functions in Excel (+ Free Template) - AIHR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/Human-Resources-Formulas-and-Functions-Thumbnail.png\",\"datePublished\":\"2026-02-12T07:52:29+00:00\",\"dateModified\":\"2026-05-14T11:58:05+00:00\",\"description\":\"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/Human-Resources-Formulas-and-Functions-Thumbnail.png\",\"contentUrl\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/Human-Resources-Formulas-and-Functions-Thumbnail.png\",\"width\":2500,\"height\":1307,\"caption\":\"Free HR Excel formulas template featuring tenure, bonus ratio, salary rank, and high performer metrics with download button.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/human-resources-formulas-and-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.aihr.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Human Resources Formulas and Functions in Excel (Plus Free Template)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#website\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/\",\"name\":\"AIHR\",\"description\":\"Online HR Training Courses For Your HR Future\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.aihr.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#organization\",\"name\":\"AIHR | Academy to Innovate HR\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"AIHR | Academy to Innovate HR\"},\"image\":{\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/analyticsinhr\\\/\",\"https:\\\/\\\/x.com\\\/AnalyticsinHR\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/analytics-in-hr\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCkGTJyIqAzQ5QIAkzLUW-Tg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/#\\\/schema\\\/person\\\/d4d00bf60a171b03ff2af054a7371e7d\",\"name\":\"John W. McCoy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/John-W-McCoy-96x96.jpg\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/John-W-McCoy-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/www.aihr.com\\\/wp-content\\\/uploads\\\/John-W-McCoy-96x96.jpg\",\"caption\":\"John W. McCoy\"},\"description\":\"John W. McCoy retired from his career an HR professional, data analyst, and human capital management consultant in 2013. Since then, he has been feeding his fascination with technology, people, and work by writing for HCM software companies in North America and Europe.\",\"url\":\"https:\\\/\\\/www.aihr.com\\\/blog\\\/author\\\/john-mccoy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Human Resources Formulas & Functions in Excel (+ Free Template) - AIHR","description":"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/","og_locale":"en_US","og_type":"article","og_title":"Human Resources Formulas and Functions in Excel (Plus Free Template)","og_description":"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.","og_url":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts\/16730","og_site_name":"AIHR","article_publisher":"https:\/\/www.facebook.com\/analyticsinhr\/","article_published_time":"2026-02-12T07:52:29+00:00","article_modified_time":"2026-05-14T11:58:05+00:00","og_image":[{"width":2500,"height":1307,"url":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","type":"image\/png"}],"author":"John W. McCoy","twitter_card":"summary_large_image","twitter_creator":"@AnalyticsinHR","twitter_site":"@AnalyticsinHR","twitter_misc":{"Written by":"John W. McCoy","Est. reading time":"25 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#article","isPartOf":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/"},"author":{"name":"John W. McCoy","@id":"https:\/\/www.aihr.com\/#\/schema\/person\/d4d00bf60a171b03ff2af054a7371e7d"},"headline":"Human Resources Formulas and Functions in Excel (Plus Free Template)","datePublished":"2026-02-12T07:52:29+00:00","dateModified":"2026-05-14T11:58:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/"},"wordCount":3408,"publisher":{"@id":"https:\/\/www.aihr.com\/#organization"},"image":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","keywords":["AinHR","human resource formulas","human resources analytics"],"articleSection":["Articles","HR Analytics and Data-Driven HR"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/","url":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/","name":"Human Resources Formulas & Functions in Excel (+ Free Template) - AIHR","isPartOf":{"@id":"https:\/\/www.aihr.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#primaryimage"},"image":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","datePublished":"2026-02-12T07:52:29+00:00","dateModified":"2026-05-14T11:58:05+00:00","description":"Improve day-to-day HR tracking in Excel with human resources formulas and functions and examples you can reuse.","breadcrumb":{"@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#primaryimage","url":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","contentUrl":"https:\/\/www.aihr.com\/wp-content\/uploads\/Human-Resources-Formulas-and-Functions-Thumbnail.png","width":2500,"height":1307,"caption":"Free HR Excel formulas template featuring tenure, bonus ratio, salary rank, and high performer metrics with download button."},{"@type":"BreadcrumbList","@id":"https:\/\/www.aihr.com\/blog\/human-resources-formulas-and-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.aihr.com\/"},{"@type":"ListItem","position":2,"name":"Human Resources Formulas and Functions in Excel (Plus Free Template)"}]},{"@type":"WebSite","@id":"https:\/\/www.aihr.com\/#website","url":"https:\/\/www.aihr.com\/","name":"AIHR","description":"Online HR Training Courses For Your HR Future","publisher":{"@id":"https:\/\/www.aihr.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.aihr.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.aihr.com\/#organization","name":"AIHR | Academy to Innovate HR","url":"https:\/\/www.aihr.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.aihr.com\/#\/schema\/logo\/image\/","url":"","contentUrl":"","caption":"AIHR | Academy to Innovate HR"},"image":{"@id":"https:\/\/www.aihr.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/analyticsinhr\/","https:\/\/x.com\/AnalyticsinHR","https:\/\/www.linkedin.com\/company\/analytics-in-hr","https:\/\/www.youtube.com\/channel\/UCkGTJyIqAzQ5QIAkzLUW-Tg"]},{"@type":"Person","@id":"https:\/\/www.aihr.com\/#\/schema\/person\/d4d00bf60a171b03ff2af054a7371e7d","name":"John W. McCoy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.aihr.com\/wp-content\/uploads\/John-W-McCoy-96x96.jpg","url":"https:\/\/www.aihr.com\/wp-content\/uploads\/John-W-McCoy-96x96.jpg","contentUrl":"https:\/\/www.aihr.com\/wp-content\/uploads\/John-W-McCoy-96x96.jpg","caption":"John W. McCoy"},"description":"John W. McCoy retired from his career an HR professional, data analyst, and human capital management consultant in 2013. Since then, he has been feeding his fascination with technology, people, and work by writing for HCM software companies in North America and Europe.","url":"https:\/\/www.aihr.com\/blog\/author\/john-mccoy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts\/16730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/users\/2845"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/comments?post=16730"}],"version-history":[{"count":3,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts\/16730\/revisions"}],"predecessor-version":[{"id":345434,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/posts\/16730\/revisions\/345434"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/media\/328418"}],"wp:attachment":[{"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/media?parent=16730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/categories?post=16730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aihr.com\/wp-json\/wp\/v2\/tags?post=16730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}