ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Tests & careers
  3. HR Excel Interview Questions With Worked Answers

HR Excel Interview Questions With Worked Answers

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

HR Excel interview questions usually test five things on an employee list: counting headcount with COUNTIFS, finding an employee by ID with XLOOKUP, calculating tenure with DATEDIF, working out dates such as probation ends with EDATE, and summarising pay with AVERAGEIFS or a pivot table. Practise each one on a small roster before the interview.

Key takeaways

  • Headcount questions are COUNTIFS questions: =COUNTIFS(Dept,"Sales",Status,"Active").
  • Look up an employee by ID with XLOOKUP, and give it a "Not found" message for missing IDs.
  • DATEDIF with "y" returns completed years of service, which is what most tenure questions mean.
  • Point formulas at cells, not typed values, so the answer updates when the data changes.
  • Say your method out loud and check one answer by hand. Interviewers often care about both.
On this page+
  1. What HR Excel interview questions test
  2. The sample employee table
  3. Headcount questions
  4. Lookup questions
  5. Date and tenure questions
  6. Pay and data-cleaning questions
  7. How to answer well in the interview
  8. Practise it

HR Excel interview questions tend to come back to one kind of sheet: a list of employees with IDs, departments, start dates, status and pay. The questions ask you to count people, find one person, measure service, work out dates and summarise salaries. This guide gives ten realistic questions with worked answers on one small table, so you can practise the formulas and the way you explain them.

What HR Excel interview questions test#

HR questions check whether you can answer everyday people-data requests accurately. The formats vary by employer: some ask you to describe a formula, some give you a laptop and a file, and some send an online test before the interview. Whatever the format, the skills overlap:

  • Counting with conditions: headcount by department, status or location.
  • Lookups: find an employee's details from an ID.
  • Dates: tenure, probation ends, anniversaries.
  • Pay: averages and totals by group, raises.
  • Clean data: duplicates, extra spaces, inconsistent names.

If you're not sure where you stand, take the Excel level test first: it shows which of these areas need work. For the wider skill set behind HR roles, see Excel skills for HR jobs.

The sample employee table#

All answers use this table in A1:F8. The report date, 31 October 2026, is in H1.

ABCDEF
1IDNameDeptStart dateStatusSalary
2E101AishaSales4 Mar 2019Active52,000
3E102BenHR19 Jul 2021Active48,000
4E103CarmenSales10 Jan 2022Left45,000
5E104DevFinance5 Nov 2018Active61,000
6E105ElenaHR22 May 2023Active46,000
7E106FaridSales12 Feb 2024Active43,000
8E107GraceFinance1 Sep 2020Left58,000

Headcount questions#

1. "How many active employees are in Sales?"

Excel formula
=COUNTIFS(C2:C8,"Sales",E2:E8,"Active")

The answer is 2 (Aisha and Farid). Carmen is in Sales but has left, so the second condition removes her. Explain that COUNTIFS counts rows where every condition is true. The COUNTIFS function guide has the full syntax.

2. "Give me the headcount for every department."

Use a pivot table: Dept in Rows, Status in Columns, and Count of ID in Values. Or list the departments in J2:J4 and fill down =COUNTIFS($C$2:$C$8,J2,$E$2:$E$8,"Active"). Saying both options shows you know when each fits.

3. "What share of staff have left?"

Excel formula
=COUNTIF(E2:E8,"Left")/COUNTA(E2:E8)

That's 2 ÷ 7 = 29% of the people on this list. If the interviewer asks for a turnover rate, mention that it is usually leavers in a period divided by the average headcount in that period, not a share of a list. The guide to HR analytics in Excel works through it.

Lookup questions#

4. "Find the department of the employee whose ID is in H2."

Excel formula
=XLOOKUP(H2,A2:A8,C2:C8,"Not found")

If H2 holds E105, the answer is HR. The fourth argument shows "Not found" instead of #N/A for a missing ID. XLOOKUP needs Excel 2021 or Microsoft 365. In older versions, say you'd use =VLOOKUP(H2,A2:F8,3,FALSE) or INDEX MATCH. The XLOOKUP function guide covers the other arguments.

5. "The lookup returns #N/A, but I can see the ID. Why?"

Give the usual causes in order: an extra space in the ID (fix with TRIM), an ID stored as a number in one list and as text in the other, or a lookup range that doesn't cover every row. This troubleshooting question checks experience more than syntax.

Date and tenure questions#

6. "How many full years has each person worked here?"

Excel formula
=DATEDIF(D2,$H$1,"y")

Aisha gets 7. Dev started on 5 November 2018, so on 31 October 2026 he also has 7 completed years, not 8: his anniversary is a few days away. Point out that you used a report date in a cell instead of TODAY(), so the report doesn't change every day. The DATEDIF function guide lists the units.

7. "Show tenure as years and months."

Excel formula
=DATEDIF(D5,$H$1,"y")&" years, "&DATEDIF(D5,$H$1,"ym")&" months"

For Dev, the result is 7 years, 11 months. "ym" returns the months left over after the full years.

8. "When does Elena's six-month probation end?"

Excel formula
=EDATE(D6,6)

The answer is 22 November 2023. EDATE adds whole months and handles month lengths for you. Format the cell as a date.

Pay and data-cleaning questions#

9. "What is the average salary of active Sales staff?"

Excel formula
=AVERAGEIFS(F2:F8,C2:C8,"Sales",E2:E8,"Active")

The answer is (52,000 + 43,000) ÷ 2 = 47,500. The range to average comes first, then the condition pairs.

10. "Give Sales a 3% raise in a new column."

Excel formula
=IF(C2="Sales",F2*1.03,F2)

Aisha's new salary is 53,560. Better still, put 3% in a cell and point to it, so the rate can change without editing the formula. Interviewers like hearing that.

Data-cleaning follow-ups are common too: find duplicate IDs with =COUNTIF($A$2:$A$8,A2)>1, remove extra spaces with TRIM, and fix capitals with PROPER. For "what if" style questions, see Excel scenario interview questions.

How to answer well in the interview#

A correct formula is only half the answer. Use this routine for each question:

  1. Repeat the question in your own words, including conditions such as "active only".
  2. Name the function and why: "COUNTIFS, because there are two conditions."
  3. Point to cells, not typed values, so the answer updates.
  4. Check one result by hand, such as counting the Sales rows yourself.
  5. Mention an edge case: missing IDs, leavers, or dates in the future.

For a broader set of general questions, read 25 Excel interview questions, and for harder ones, the advanced Excel interview questions. To rehearse under time pressure, try the intermediate Excel mock test.

Practise it#

The fastest way to get ready is to answer these questions in a real sheet. The HR roster interview drill gives you a timed-test style employee list with lookups, counts and tenure, and checks every answer instantly. Strengthen the basics with the COUNTIFS and SUMIFS lesson and the XLOOKUP lesson, then try the tenure exercise on this page.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

"How many full years has Dev worked here, as of the date in G2?" Answer in F5 with DATEDIF, using Dev's start date in D5.

fx
ABCDEFGH
1
ID
Name
Dept
Start date
Status
As of
2
E101
Aisha
Sales
43528
Active
46326
3
E102
Ben
HR
44396
Active
4
E103
Carmen
Sales
44571
Left
5
E104
Dev
Finance
43409
Active
6
E105
Elena
HR
45068
Active
7
8
9

Tip: DATEDIF takes the start date, the end date and a unit. "y" counts completed years.

Practise this in a lesson

LessonInterview drill: HR rosterWork through a timed-test style HR roster: look up a salary, count, total and list by department, flag bonuses, calculate tenure and handle a missing ID.LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.LessonXLOOKUPLook up in any direction with XLOOKUP and show a friendly message when nothing matches.Function guideCOUNTIFSCount rows that meet several conditions with COUNTIFS. Examples for text, number ranges and between-values, plus a live exercise.Function guideXLOOKUPXLOOKUP explained with real examples: exact matches, looking left and custom not-found messages, plus a live exercise to try now.Function guideDATEDIFCalculate tenure, age and contract length with DATEDIF. Learn every unit (Y, M, D, YM), the hidden-function quirks, and practice live.

Frequently asked questions

What Excel skills are needed for HR jobs?

+

Most HR roles use counting and totals with conditions (COUNTIFS, SUMIFS, AVERAGEIFS), lookups by employee ID (XLOOKUP or VLOOKUP), date maths for tenure and probation (DATEDIF, EDATE), data cleaning, and pivot tables for headcount reports.

How do I calculate employee tenure in Excel?

+

Use =DATEDIF(start_date, end_date, "y") for completed years. Put the end date in a cell, such as the report date, rather than using TODAY(), so the answer doesn't change every day. Add "ym" for the extra months.

How do I count employees by department in Excel?

+

Use COUNTIF for one condition, such as =COUNTIF(C2:C8,"Sales"), or COUNTIFS for more, such as =COUNTIFS(C2:C8,"Sales",E2:E8,"Active"). A pivot table with Department in Rows and a count of ID in Values gives every department at once.

Is there an Excel test in HR interviews?

+

Some employers include a practical Excel task or an online test, and others only ask questions. Check the job advert or ask the recruiter what format to expect, then practise with a timed test so the speed doesn't surprise you.

Sources

  • COUNTIFS function - Microsoft Support
  • XLOOKUP function - Microsoft Support
  • DATEDIF function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What HR Excel interview questions test
  2. The sample employee table
  3. Headcount questions
  4. Lookup questions
  5. Date and tenure questions
  6. Pay and data-cleaning questions
  7. How to answer well in the interview
  8. Practise it

Keep reading

Tests & careers· 5 min read

Excel Skills for HR and Recruiting Jobs

The most useful Excel skills for HR and recruiting are counting headcount with COUNTIFS, totalling payroll with SUMIFS, calculating tenure and time to hire with DATEDIF, TODAY and date subtraction, looking up employee records with XLOOKUP or VLOOKUP, flagging eligibility with IF and AND, and cleaning names and dates so reports stay accurate.

Tests & careers· 7 min read

HR Analytics in Excel: Headcount, Turnover and Tenure

HR analytics in Excel starts with one row per employee, with department, start date, leave date and status. From that table, COUNTIFS gives headcount by department or on any date, hires and leavers in a period, and the turnover rate (leavers divided by average headcount). DATEDIF and YEARFRAC measure tenure, and a summary table feeds the dashboard.

Tests & careers· 5 min read

Advanced Excel Interview Questions and How to Answer

Advanced Excel interview questions usually test flexible lookups (INDEX MATCH, XLOOKUP, two-way and multi-condition lookups), dynamic arrays such as FILTER, UNIQUE and SORT, pivot table features like % of total and grouping, and how you build reliable workbooks. Strong answers explain why you chose a method, not just the syntax.

More on tests & careers

  • Intermediate Excel Skills: The List Employers Expect
  • Is Excel a Hard Skill or a Soft Skill?
  • Is Excel Still Worth Learning? A Straight Answer for Job Seekers
  • Jobs That Require Excel and the Level Each One Needs
  • Learn Excel Fast for a New Job: A 7-Day Plan
  • Excel Skills for MIS Executive Jobs and Interviews
All tests & careers articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free