Excel interview questions for data analysts usually cover lookups (XLOOKUP, INDEX MATCH), conditional formulas (SUMIFS, COUNTIFS), dynamic arrays, pivot tables and Power Query for cleaning and combining data. Interviewers want correct syntax, knowing when to use each tool, and a clear explanation of how you would solve a real reporting task.
Even in teams that run on SQL and Power BI, Excel is still where a lot of analysis starts, and it is often the first technical screen for data analyst roles. Many companies in India, from Accenture and Deloitte to fintech startups, give a short Excel test or ask you to share your screen and solve a task live.
Here are 16 questions grouped by topic, each with a short model answer you can say in under a minute, plus a worked task and a script for explaining your approach. For SQL, statistics and case questions, see our full data analyst interview questions page.
What Excel skills do data analyst interviews test?
Lookups: XLOOKUP, VLOOKUP and INDEX MATCH, including multi-criteria lookups.
Conditional aggregation: SUMIFS, COUNTIFS, AVERAGEIFS.
Dynamic arrays: FILTER, UNIQUE, SORT and how spilling works.
Pivot tables: grouping, calculated fields, percentage views, slicers.
Power Query: importing, cleaning, merging, appending and unpivoting data.
Habits: Excel Tables, absolute references, error handling and refreshable workflows.
Which lookup questions come up most? (Questions 1 to 4)
1. What is XLOOKUP, and why is it better than VLOOKUP?
The syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]). It defaults to an exact match, can look left because the lookup and return ranges are separate, does not break when someone inserts a column, has a built-in if_not_found argument, and can search from last to first with search_mode -1 to get the latest record. It is available in Microsoft 365 and Excel 2021 onward, not in Excel 2019 or older.
2. Why does a VLOOKUP sometimes return the wrong value?
The most common reason is that the fourth argument, range_lookup, was left out. When omitted it defaults to TRUE, an approximate match, which returns wrong results on unsorted data. Use FALSE or 0 for an exact match. Other causes are a hard-coded column number that shifts when columns are inserted, trailing spaces, and numbers stored as text in one table but not the other.
3. How does INDEX MATCH work, and when would you still use it?
MATCH finds the position of a value, and INDEX returns the value at that position: =INDEX(C2:C500, MATCH(F2, A2:A500, 0)). The 0 means exact match. It works in every Excel version, so it is safer when files are shared with people on older Excel. For a two-way lookup, use a second MATCH for the column: =INDEX(B2:M500, MATCH(F2, A2:A500, 0), MATCH(G1, B1:M1, 0)).
4. How do you look up a value using two criteria?
In Microsoft 365, multiply two logical tests inside XLOOKUP: =XLOOKUP(1, (A2:A500=F2)*(B2:B500=G2), C2:C500, "Not found"). Each test returns TRUE or FALSE, multiplying converts them to 1 and 0, and the row where both are true becomes 1. In older versions, a helper column that joins the two keys with a separator, such as =A2&"|"&B2, is the simple fallback.
What formula questions should you be ready for? (Questions 5 to 8)
5. How do SUMIFS and COUNTIFS work?
SUMIFS puts the sum range first, then pairs of criteria range and criteria: =SUMIFS(D2:D500, B2:B500, "North", C2:C500, ">="&DATE(2026,4,1)). This sums sales for the North region from 1 April 2026. COUNTIFS uses only criteria pairs. All conditions must be true for a row to count, which is AND logic. For OR logic, add two SUMIFS together or use SUMPRODUCT.
6. What is the difference between relative, absolute and mixed references?
A1 is relative and shifts when copied. $A$1 is absolute and stays fixed, which you need for a tax rate or a lookup table. $A1 locks the column only, and A$1 locks the row only, useful for multiplication grids and cross tables. Pressing F4 while editing a reference cycles through the four options.
7. What are dynamic array functions?
In Microsoft 365 and Excel 2021, one formula can return many results that spill into neighbouring cells. =UNIQUE(B2:B500) lists distinct regions, =FILTER(A2:D500, D2:D500>50000) returns only rows above a value, and =SORT(range, 2, -1) sorts by the second column in descending order. If something blocks the spill area, Excel shows a #SPILL! error until you clear those cells.
8. What is the difference between IFERROR and IFNA?
IFERROR catches every error type, including #DIV/0!, #VALUE! and #REF!. IFNA catches only #N/A, which is what a failed lookup returns. For lookups, IFNA or the if_not_found argument of XLOOKUP is safer, because IFERROR can hide a real mistake such as a broken reference.
What pivot table questions do interviewers ask? (Questions 9 to 12)
9. How do you set up a pivot table that stays up to date?
Convert the data to an Excel Table first with Ctrl+T, then build the pivot from the Table. When new rows are added the Table grows, and the pivot includes them after a refresh. Pivots do not refresh automatically by default: use Refresh or Refresh All on the Data tab, or set the pivot option to refresh when the file opens.
10. How do you show values as a percentage of the total?
Right-click a value in the pivot, choose Show Values As, then % of Grand Total, % of Column Total, % of Row Total or % of Parent Row Total. You can add the same field twice to show the number and the percentage side by side. You can also group date fields by months, quarters and years from the right-click Group option.
11. What is a calculated field, and what is its limitation?
A calculated field creates a new field from existing ones, such as Profit = Revenue - Cost. The key limitation is that it always works on the sums of the underlying fields, not row by row. That is fine for profit or margin on totals, but it cannot do a distinct count or a row-level calculation like an average of ratios. For those, add the data to the Data Model and use a DAX measure in Power Pivot.
12. How do you get a distinct count in a pivot table?
Tick Add this data to the Data Model when you create the pivot. Then in Value Field Settings, the Distinct Count option becomes available, for example to count unique customers per region. In a normal pivot without the Data Model, that option does not appear.
What should you know about Power Query? (Questions 13 to 16)
13. What is Power Query, and when would you use it?
Power Query, found under Get and Transform Data on the Data tab, imports and cleans data from files, folders, databases and the web. Each transformation is recorded as a step in Applied Steps, written in the M language behind the scenes. Next month you drop in the new file and click Refresh, and every step runs again. Use it whenever a cleaning task repeats.
14. What is the difference between Merge and Append?
Append stacks tables with the same columns on top of each other, like combining January, February and March sales files. Merge joins two tables side by side on a matching key, like a lookup, and lets you choose the join kind: left outer, right outer, full outer, inner, left anti or right anti. A left anti join is handy for finding records in one table that are missing from another.
15. How do you turn months spread across columns into rows?
Use Unpivot. Select the columns that identify each row, such as Product and Region, then choose Unpivot Other Columns. Power Query turns Jan, Feb and Mar into two columns, Attribute and Value, which you rename to Month and Sales. Unpivot Other Columns is better than Unpivot Columns here, because new month columns added later are included automatically.
16. How do you clean messy data in Power Query?
Set correct data types early, especially dates and numbers.
Use Trim and Clean to remove leading or trailing spaces and non-printing characters.
Split columns by delimiter, for example a full name or a code like IN-MUM-042.
Use Fill Down for blank cells under a group heading.
Replace values and errors, then Remove Duplicates on the key column.
Filter out total rows and blank rows that came from the source report.
Worked example: a typical live Excel task
A common screen gives you two files and 30 minutes: a sales export with region and product codes, and a product master with category and price. You are asked for revenue by category and month, and the top three products per region. Here is how Priya, a fresher applying for analyst roles, broke it down:
Step | Tool | What she did |
|---|---|---|
1. Load both files | Power Query | Imported each file and set data types for dates and amounts |
2. Clean | Power Query | Trimmed product codes and removed blank and duplicate rows |
3. Combine | Merge, left outer join | Joined sales to product master on product code to bring in category |
4. Check gaps | Merge, left anti join | Found sales codes missing from the master and listed them |
5. Calculate | Added column | Revenue = Quantity multiplied by Price |
6. Summarise | Pivot table | Category in rows, Order Date grouped by month in columns, sum of Revenue |
7. Rank | Pivot filter | Region then Product in rows, with a Top 10 value filter on Product set to top 3 by revenue |
How do you explain your approach in the interview?
Interviewers score your reasoning as much as your formulas. Talk through the plan before you start clicking, then mention checks. Something like this works well:
I will load both files through Power Query so the steps are repeatable if new data comes next month. First I will fix data types and trim the product codes, because trailing spaces usually break joins. Then I will merge sales with the product master using a left join to bring in category, and run a left anti join to check for codes that do not match. I will add revenue as quantity times price, load it to a pivot table with month and category, and finally reconcile the pivot total against the raw sum to make sure nothing was dropped.
That last line, reconciling totals, is what separates careful analysts from fast ones. Say it even if time is short.
How should you practise Excel before the interview?
Download a public sample dataset and rebuild the worked task above from scratch, with a timer.
Write each formula from this list once without looking it up.
Practise explaining one formula aloud in under 30 seconds.
Build one small Power Query flow that combines files from a folder and refreshes cleanly.
Keep a one-page note of your best Excel project to use in the behavioural round.
Many analyst roles also test Power BI, so our Power BI developer interview questions are a natural next step. A mock interview lets you rehearse explaining tasks aloud and get a score on each answer. If your screen is live on a call, the Interview Copilot for technical interviews can help you structure explanations of your own work, within each employer's interview rules. When you are ready to apply, Auto-Apply for data analyst jobs sends applications only after you approve each one.
Want a question list tailored to the exact job? Sign up free for InterviewPlan AI with 5 live minutes and 100 AI credits, no card needed, upload your resume and the job description, and get likely Excel and analyst questions with model answers.
Frequently asked questions
Is Excel still important for data analyst interviews?
Yes. Even teams that use SQL, Python and Power BI rely on Excel for quick checks, ad hoc analysis and sharing results with business users. Many data analyst interviews, especially for freshers and roles in finance, operations and consulting, include an Excel test or a live screen-share task.
Should I learn XLOOKUP or VLOOKUP for interviews?
Learn both. XLOOKUP is the modern choice in Microsoft 365 and Excel 2021, and interviewers like hearing why it is better. But many companies still use older versions or files built with VLOOKUP, so you should be able to read, fix and explain VLOOKUP and INDEX MATCH too.
What is the difference between Power Query and Power Pivot?
Power Query gets and cleans data: importing, merging, appending, unpivoting and fixing types. Power Pivot models it: it holds tables in the Data Model, defines relationships between them and lets you write DAX measures for pivot tables. A typical flow uses Power Query first, then Power Pivot.
What Excel test questions do freshers get?
Freshers usually get SUMIFS and COUNTIFS, a lookup between two sheets, a pivot table summary, basic charts, removing duplicates and text functions like TRIM, LEFT and TEXT. Some tests add a short data-cleaning task. Accuracy and a clear explanation matter more than advanced tricks.
How do I mention Excel skills on my resume?
Name specific tools and outcomes instead of writing advanced Excel. For example: built a Power Query flow that combined monthly regional files, or created a pivot dashboard used in weekly reviews. Match the tools to the job description so ATS filters and recruiters both see them.
