Excel interview questions for data analysts: 18 questions by level

Practice 18 Excel interview questions for data analysts with answers and explanations, from basics to advanced formulas and pivots.

What this Excel test checks

Interviewers use Excel tests to see whether you can work accurately with real tables, not just name formulas. For data analyst, admin, and finance roles, they usually check how you handle formatting, totals, sorting and filters, absolute references, lookups, conditional formulas, pivot tables, and messy data cleanup. They also look for whether you can choose the simplest correct formula, read a table carefully, and avoid common reference mistakes.

How this practice test is organised

This page includes 18 questions in three levels: basic, intermediate, and advanced. The basic section covers formatting, SUM/AVERAGE, sorting and filters, and absolute references. The intermediate section moves into SUMIFS/COUNTIFS, XLOOKUP/VLOOKUP, IF, and pivot tables. The advanced section focuses on nested logic, INDEX+MATCH, dynamic arrays, pivot calculations, and cleaning messy data. Each question is based on a small realistic table shown in a code block, so you can practice the same way these tests are usually presented.

How to use it

Answer each question before looking at the solution. Then read the explanation to understand why the formula or result is correct and what detail in the table matters. If you miss a question, repeat it until you can solve it without help. That is the fastest way to build speed and accuracy for the kind of Excel screening companies use.

Basic · 7 questions

  1. 1.

    You have a list of monthly expenses and want the total for a selected month.

    A1: Month    B1: Amount
    A2: Jan      B2: 800
    A3: Feb      B3: 650
    A4: Mar      B4: 720
    A5: Apr      B5: 910

    Which formula totals the amounts in cells B2 through B5?

    Show answer

    Correct answer: =SUM(B2:B5)

    =SUM(B2:B5) adds the numeric values in the Amount column and returns the total expense. =AVERAGE(B2:B5) would give the mean instead of the total, which is a common mix-up in basic Excel tasks. =COUNT(B2:B5) counts numeric cells, and =SUM(A2:A5) tries to add text month names, so neither produces the requested total.

    Learn more about Excel
  2. 2.

    A manager wants only the rows for the East region to appear in a sales list.

    A1: Region   B1: Sales
    A2: East     B2: 500
    A3: West     B3: 700
    A4: East     B4: 900
    A5: North    B5: 650

    Which Excel feature should you use to show only the East rows?

    Show answer

    Correct answer: Apply a filter on the Region column

    A filter on the Region column hides nonmatching rows and leaves only East visible, which is the required action. Sorting changes row order but still shows every row. Conditional formatting only changes appearance, not visibility, and freezing the top row keeps headers visible while scrolling but does not filter data. This question tests the practical difference between filtering and other common worksheet actions.

    Learn more about Excel
  3. 3.

    You need the sales numbers in ascending order before sending the report.

    A1: Rep      B1: Sales
    A2: Ana      B2: 1400
    A3: Ben      B3: 900
    A4: Cara     B4: 1700
    A5: Dan      B5: 1100

    Which action sorts the sales values from smallest to largest?

    Show answer

    Correct answer: Sort column B from Smallest to Largest

    Sorting column B from smallest to largest orders the sales values numerically, which is what the report needs. Sorting column A alphabetically would rearrange reps, not sales amounts. Filtering blanks is unrelated, and Find searches for text or numbers without changing order. The key concept is choosing the correct column and sort direction for numeric data.

    Learn more about Excel
  4. 4.

    A product table contains an exact Product ID match.

    A1: ProductID   B1: Price
    A2: P100       B2: 25
    A3: P200       B3: 30
    A4: P300       B4: 18

    Which XLOOKUP formula returns the price for P200 from column B?

    Show answer

    Correct answer: =XLOOKUP("P200",A2:A4,B2:B4)

    =XLOOKUP("P200",A2:A4,B2:B4) searches the ProductID column for an exact match and returns the corresponding value from the Price column. The first wrong option uses the price range as the lookup array, so it is looking in the wrong column. The second wrong option reverses lookup and return arrays, and the third returns the ID column instead of the price. XLOOKUP needs the lookup array and return array to be aligned row by row.

  5. 5.

    A pivot table summarizes transactions by category.

    A1: Category   B1: Amount
    A2: Office     B2: 100
    A3: Office     B3: 100
    A4: Travel     B4: 250
    A5: Travel     B5: 250

    The pivot table shows inflated totals after the same source rows were added twice. What should you do first?

    Show answer

    Correct answer: Remove duplicate rows from the source data

    If the source rows were loaded twice, the pivot table is correctly summing duplicated data, so the first fix is to remove duplicates in the source table. Changing the value field to Count would replace totals with record counts, which answers a different question. Sorting or moving fields changes layout, not the underlying double-counting problem. The issue here is duplicate source records, not the pivot layout itself.

    Learn more about Pivot Tables
  6. 6.

    You need a pivot table that shows total sales for each department.

    A1: Department   B1: Sales
    A2: HR           B2: 300
    A3: HR           B3: 200
    A4: IT           B4: 500
    A5: IT           B5: 400

    Which pivot table layout is correct?

    Show answer

    Correct answer: Rows: Department; Values: Sum of Sales

    To show total sales by department, put Department in Rows and Sales in Values summarized by Sum. Putting Sales in Rows is not a useful category layout, and Count of Department would count records instead of adding sales amounts. Using Department as Columns can also work in some reports, but the question asks for the standard layout for totals by department, which is Rows plus Sum. The value field aggregation is the key concept.

    Learn more about Pivot Tables
  7. 7.

    A clerk wants the average order value from the numbers in C2:C5.

    A1: Order   B1: Rep     C1: Value
    A2: 101     B2: Maya    C2: 40
    A3: 102     B3: Liam    C3: 60
    A4: 103     B4: Sofia   C4: 80
    A5: 104     B5: Omar    C5: 100

    Which formula should be entered in C7?

    Show answer

    Correct answer: =AVERAGE(C2:C5)

    =AVERAGE(C2:C5) calculates the mean of the four order values, which is exactly what the task asks for. SUM would give the total of all orders, not the average. COUNT returns the number of numeric entries, and MIN returns only the smallest value. This question checks the basic AVERAGE function on a clearly shown data range.

Intermediate · 4 questions

  1. 8.

    A finance sheet has invoice amounts in column B and status in column C. You need the total only for invoices marked Paid. Which formula should be used in E2?

    A1: Invoice   B1: Amount   C1: Status
    A2: 1001      B2: 450      C2: Paid
    A3: 1002      B3: 300      C3: Open
    A4: 1003      B4: 250      C4: Paid
    A5: 1004      B5: 150      C5: Paid
    
    E1: Total paid
    E2: ?
    Show answer

    Correct answer: =SUMIFS(B2:B5,C2:C5,"Paid")

    SUMIFS is correct because it adds values from the Amount column only where the Status column equals Paid. The common mistake is using SUMIF with the sum range and criteria range reversed or misapplied; that would not sum invoice amounts by status. COUNTIFS is also tempting, but it counts matching rows instead of adding the monetary values. A plain SUM ignores the Paid filter and returns all invoices, including Open ones.

  2. 9.

    A pivot table shows sales by salesperson and quarter. You want each cell to display the average deal size rather than the total sales amount. What should you do?

    A1: Salesperson   B1: Quarter   C1: DealSize
    A2: Ava           B2: Q1       C2: 400
    A3: Ava           B3: Q1       C3: 600
    A4: Ben           B4: Q1       C4: 200
    A5: Ben           B5: Q2       C5: 500
    Show answer

    Correct answer: Change the Value Field Settings from Sum to Average

    A pivot table summarizes numeric fields by Sum by default, so if you need average deal size, the Value Field Settings must be changed from Sum to Average. Moving the field to Rows changes the layout, not the calculation, and filtering by quarter only removes data without changing the aggregation type. Report layout options control presentation, not whether Excel sums or averages the values. This is a common pivot-table adjustment in analyst tests.

    Learn more about Pivot Tables
  3. 10.

    An HR analyst wants to calculate the average salary for employees in the Sales department. Which formula returns the correct result in D2?

    A1: Employee   B1: Department   C1: Salary
    A2: Mira       B2: Sales        C2: 70000
    A3: Omar       B3: HR           C3: 62000
    A4: Nia        B4: Sales        C4: 80000
    A5: Leo        B5: Sales        C5: 76000
    Show answer

    Correct answer: =AVERAGEIF(B2:B5,"Sales",C2:C5)

    AVERAGEIF is the right function when one condition determines which numeric values to average. The first option averages only salaries where Department equals Sales. The plain AVERAGE formula includes every salary, not just Sales. SUMIF gives the total salary, which is a different result, and COUNTIF returns how many Sales employees there are rather than the average salary.

  4. 11.

    An inventory sheet lists item codes in column A and stock counts in column C. You need to return the stock count for the code in F2, and if the code is missing, show "Not found". Which formula in G2 is correct?

    A1: ItemCode   B1: Item   C1: Stock   F1: Lookup code   G1: Result
    A2: A101       B2: Cable  C2: 18      F2: A103
    A3: A102       B3: Mouse  C3: 12
    A4: A103       B4: Stand  C4: 7
    A5: A104       B5: Dock   C5: 9
    Show answer

    Correct answer: =XLOOKUP(F2,$A$2:$A$5,$C$2:$C$5,"Not found")

    XLOOKUP is correct because it searches the ItemCode column for the code in F2 and returns the matching value from the Stock column, with "Not found" as the if_not_found argument. The second option searches the stock numbers instead of the item codes, so it is looking in the wrong column. VLOOKUP could work for an exact match, but it does not include the requested fallback text as written. The last option returns item names, not stock counts, so it gives the wrong result type.

Advanced · 7 questions

  1. 12.

    A dashboard shows product sales by month, and the analyst wants to return the sales value for the row where Product is in G2 and Month is in H2. They want the lookup to use both fields and return the matching Amount.

    A1: Product   B1: Month   C1: Amount
    A2: Pen      B2: Jan      C2: 120
    A3: Pen      B3: Feb      C3: 150
    A4: Pad      B4: Jan      C4: 90
    A5: Pad      B5: Feb      C5: 110
    G2: Pad
    H2: Feb

    Which formula should go in I2?

    Show answer

    Correct answer: =XLOOKUP(G2&H2,A2:A5&B2:B5,C2:C5)

    This question tests a concatenated lookup key. Joining Product and Month in both the lookup value and lookup array allows XLOOKUP to match the unique pair and return the corresponding Amount. The single-field XLOOKUP choices fail because they can only match one column and would return the first Pad or the first Feb row, which is not the same record. Reversing the arrays would try to find the concatenated key in the Amount column, which cannot work here.

  2. 13.

    A workbook has a list of product codes entered with extra spaces. The analyst needs a cleaned code in D2 that removes leading and trailing spaces from A2 before matching it later.

    A1: RawCode
    A2: "  P-204  "
    A3: "  P-305"
    A4: "P-410  "
    D2: ?

    Which formula should go in D2?

    Show answer

    Correct answer: =TRIM(A2)

    TRIM is the correct function for removing extra spaces at the beginning and end of text, and it also collapses repeated internal spaces to single spaces. That makes it ideal for cleaning pasted codes before lookup. CLEAN removes nonprinting characters, which is a different problem and would not reliably fix the visible spaces. LEFT simply truncates characters, and SUBSTITUTE with a space-removal pattern would delete all spaces, which can change valid text rather than just cleaning it.

    Learn more about Excel
  3. 14.

    You have a sales table and want a dynamic list in E2 that returns the names of all reps who closed deals above 500. The results should spill down automatically. Which formula should you use?

    A1: Rep     B1: DealValue
    A2: Ana     B2: 480
    A3: Ben     B3: 720
    A4: Cara    B4: 610
    A5: Dan     B5: 450
    
    E1: HighValueReps
    Show answer

    Correct answer: =FILTER(A2:A5,B2:B5>500)

    FILTER is the correct dynamic-array function because it returns all rep names whose DealValue exceeds 500 and spills the results automatically. UNIQUE would remove duplicates but would not apply the numeric condition. SORT would reorder the names without filtering by deal size, and XLOOKUP would return only the first matching rep instead of the full list of qualifying reps.

  4. 15.

    A pivot table shows sales by region, but the finance lead wants to display each region’s share of the grand total instead of the raw sales amount. Which pivot value setting should you choose?

    A1: Region   B1: Sales
    A2: East     B2: 400
    A3: West     B3: 600
    A4: East     B4: 200
    A5: South    B5: 300
    Show answer

    Correct answer: Show Values As % of Grand Total

    Show Values As % of Grand Total is the correct pivot-table calculation because it converts each region’s sales into its proportion of the overall total. Sort Largest to Smallest changes the order, not the measure. Count would replace sales amounts with row counts, which is a different metric. Difference From calculates a delta against a base item, not a percentage share of the grand total.

    Learn more about Pivot Tables
  5. 16.

    A sales analyst wants a two-way summary formula in E3 that returns the amount at the intersection of the rep in D2 and the month in E1.

    A1: Rep     B1: Jan   C1: Feb
    A2: Ana     B2: 1200  C2: 900
    A3: Ben     B3: 800   C3: 700
    A4: Cara    B4: 1500  C4: 1100
    D1: RepName  E1: Month
    D2: Ben      E2: Feb

    Which formula should be entered in E3?

    Show answer

    Correct answer: =INDEX(B2:C4,MATCH(D2,A2:A4,0),MATCH(E1,B1:C1,0))

    INDEX with two MATCH functions is the standard way to return the value at a row/column intersection when both the row label and column header vary. The first MATCH finds the rep row and the second MATCH finds the month column. XLOOKUP alone returns only one dimension, not a two-way intersection, while using A2:C4 shifts the column numbering and would return the wrong cell. Adding MATCH results is not a lookup at all. This tests nested lookup logic.

  6. 17.

    A finance analyst needs a value that can be filled down in E2:E5. For each invoice row, it should calculate commission only when the status is "Paid" and otherwise return 0.

    A1: Invoice   B1: Amount   C1: Status
    A2: 1001      B2: 1200     C2: Paid
    A3: 1002      B3: 800      C3: Open
    A4: 1003      B4: 500      C4: Paid
    A5: 1004      B5: 900      C5: Void

    Which formula should go in E2?

    Show answer

    Correct answer: =IF(C2="Paid",B2*0.03,0)

    The correct formula tests the Status cell in C2 and returns 3% of the Amount in B2 only when the invoice is Paid. The most tempting wrong option uses the same IF structure but checks B2 against "Paid" and multiplies C2, which fails because B2 is numeric and C2 is text. Another distractor returns the full amount instead of commission. The blank-string version changes the required zero result into an empty cell, which is not the same output.

  7. 18.

    A sales manager wants a formula in E2 that can be copied across and down. It should return the quarterly bonus only when Region is "North" and Revenue is at least 10000; otherwise it should show 0.

    A1: Rep   B1: Region   C1: Revenue   D1: Bonus
    A2: Ana   B2: North    C2: 12000     D2: 300
    A3: Ben   B3: South    C3: 9800      D3: 0
    A4: Cara  B4: North    C4: 9000      D4: 0
    A5: Dan   B5: East     C5: 15000     D5: 0

    Which formula should be entered in E2?

    Show answer

    Correct answer: =IF(AND(B2="North",C2>=10000),D2,0)

    AND is required because both conditions must be true: the region must be North and revenue must meet the threshold. The correct formula checks B2 and C2, then returns the bonus from D2. OR is the tempting wrong choice because it would pay when only one condition is met, which changes the business rule. Using D2 in the test is also wrong because Bonus is the result, not the criterion. The strict greater-than symbol would exclude exactly 10000.

18 questions

Common mistakes in Excel interview tests

The biggest mistakes are rushing past the table structure, using the wrong reference type, and choosing a formula that works in theory but not for the exact layout shown. Candidates also lose points by mixing up SUMIF and SUMIFS, confusing XLOOKUP with VLOOKUP when the lookup column is not first, and forgetting how pivot tables summarize data by category. Another frequent error is not checking whether a value is text, a date, or a number before building the formula.

How to prepare in the days before

Practice on small tables and force yourself to explain each step out loud: what is being looked up, which cells should stay fixed, and what result the question actually wants. Review absolute and relative references, lookup logic, conditional totals, and pivot table grouping. Then do a few messy-data exercises where you remove extra spaces, split combined fields, or standardize inconsistent entries. On test day, read the prompt carefully, answer first, and only then verify with the explanation. That habit helps you stay precise and avoid the easy mistakes that most candidates make on practical Excel screens.

Want more questions like these?

Practice timed questions at your level, track your skill score and find the gaps before the interview. Free.

Practice more questions