Excel interview questions with formula answers
25 questions · live sheetsUpdated
Excel interviews for analyst, admin, finance and operations roles tend to check the same things: can you turn a plain-English question into a formula, do you know which function fits, and can you explain why it works. Some interviewers ask out loud, some hand you a laptop with a workbook, and some send a timed test first. The questions below are the formula questions that come up again and again, grouped from basic to advanced. Each has a short answer you could say in the room, a live sheet that shows it working (edit the formula and the cells recalculate), and the follow-up an interviewer is likely to ask next. They're written by us on made-up data, not collected from any employer. formulastreak is independent, and this isn't an official Microsoft or Google certification. To check your level first, take the free Excel test.
Basic Excel interview questions
1. What's the difference between a formula and a function?
A formula is anything you type that starts with =. A function is a named, built-in calculation you use inside a formula, like SUM or IF. =B2+B3+B4+B5+B6 is a formula without a function; =SUM(B2:B6) is a formula that uses one.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Sold | Price | Total |
| 2 | Sourdough loaf | 14 | $6.50 | |
| 3 | Croissant | 32 | $2.80 | |
| 4 | Cinnamon bun | 21 | $3.20 | |
| 5 | Baguette | 18 | $3.00 | |
| 6 | Rye loaf | 9 | $7.00 | |
| 7 | ||||
| 8 | Sold in total | 94 |
B8 adds every number in the Sold column from B2 to B6 and shows 94. Typing the five cells with plus signs gives the same 94, but the SUM version is shorter, harder to get wrong, and still right if you insert a row inside the range.
Follow-up: When would you not use SUM?
When the cells aren't next to each other and there are only two or three, =B2+B5 is clearer. For anything longer, SUM over a range.
2. What does the $ sign do in a cell reference?
It locks part of the reference so it doesn't move when you copy the formula. $C$9 always points at C9; C9 becomes C10, C11 and so on as you fill down. Lock the cells every row should share, like a total or a rate.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | Jul share |
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | 13.0% |
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | 10.3% |
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | 16.0% |
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | 9.1% |
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | 11.8% |
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | 14.0% |
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | 10.6% |
| 9 | Hugo Martin | West | $14,500 | $15,800 | $15,100 | $42,000 | 15.2% |
Each rep's July sales are divided by the whole team's July total. C2 moves down with each row, but $C$2:$C$9 stays put, so every row divides by the same total: Amara's share is 13.0% and Lina's is 16.0%. Without the $ the range would shrink as it slid down and the lower shares would be wrong. More in the absolute references guide.
Follow-up: What's a mixed reference?
One part locked and one free: $A2 keeps the column and lets the row move, A$2 the opposite. You need them when one formula fills a grid across and down.
3. COUNT or COUNTA: what's the difference?
COUNT counts cells that hold numbers (dates count too). COUNTA counts every cell that isn't empty: numbers, text, anything. Use COUNT for a column of amounts and COUNTA for names or IDs.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Name | Age | Plan | Joined | COUNT of Age | 7 | ||
| 2 | mara@example.com | Mara | 34 | Pro | 12 Jan 2026 | COUNTA of Age | 9 | |
| 3 | jonas@example.org | Jonas | 41 | Basic | 15 Jan 2026 | |||
| 4 | MARA@example.com | Mara O. | 34 | Pro | 20 Jan 2026 | |||
| 5 | priya@example.net | Priya | Team | 2 Feb 2026 | ||||
| 6 | tomas@example.com | Tomás | n/a | basic | 9 Feb 2026 | |||
| 7 | elif@example.org | Elif | 29 | Pro | 17 Feb 2026 | |||
| 8 | jonas@example.org | Jonas Lind | 41 | Basic | 23 Feb 2026 | |||
| 9 | kenji@example.net | Kenji | 52 | Enterprise | 3 Mar 2026 | |||
| 10 | sofia@example.com | Sofia | 23 | Team | 8 Mar 2026 | |||
| 11 | leo@example.org | Leo | 17 | Basic | 14 Mar 2026 |
The Age column has ten rows. COUNT shows 7: it skips Priya's empty cell, Tomás's “n/a” and Jonas's 41, which was typed as text. COUNTA in H2 shows 9: only the empty cell is left out. When the two disagree on a column that should be all numbers, the gap is your list of cells to clean.
Follow-up: How do you count empty cells?
With COUNTBLANK, or =ROWS(C2:C11)-COUNTA(C2:C11).
4. How do you calculate a percentage change?
New minus old, divided by old: =(new-old)/old, then format the cell as a percentage. A positive result is growth and a negative one is a fall.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | Aug vs Jul |
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | 5.6% |
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | 4.6% |
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | -2.6% |
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | 4.6% |
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | 12.5% |
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | -3.0% |
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | -5.0% |
| 9 | Hugo Martin | West | $14,500 | $15,800 | $15,100 | $42,000 | 9.0% |
For each rep, August minus July is divided by July. Amara grew 5.6%, Eva grew 12.5%, and Lina fell -2.6%. The brackets matter: without them the division happens first and the result is nonsense. The percentage change guide covers increases, decreases and shares.
Follow-up: What if the old value is 0?
The division gives #DIV/0!, because growth from nothing isn't a percentage. Show a blank or a note instead, for example with IF(C2=0,"",(D2-C2)/C2).
5. Is rounding a number the same as formatting it with fewer decimals?
No. Formatting changes only what you see; the cell keeps every decimal and later sums use them. ROUND(value, digits) changes the value itself, so what you see is what gets added up.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Category | Type | Budget | Actual | Per week |
| 2 | Rent | Fixed | $1,200.00 | $1,200.00 | $276.92 |
| 3 | Groceries | Variable | $450.00 | $512.40 | $118.25 |
| 4 | Utilities | Fixed | $160.00 | $148.75 | $34.33 |
| 5 | Transport | Variable | $120.00 | $96.50 | $22.27 |
| 6 | Phone & internet | Fixed | $65.00 | $65.00 | $15.00 |
| 7 | Eating out | Variable | $150.00 | $203.10 | $46.87 |
| 8 | Subscriptions | Fixed | $38.00 | $44.97 | $10.38 |
| 9 | Gym | Fixed | $40.00 | $40.00 | $9.23 |
| 10 | Gifts | Variable | $60.00 | $25.00 | $5.77 |
| 11 | Savings | Fixed | $300.00 | $300.00 | $69.23 |
Each monthly amount is turned into a weekly one (times 12, divided by 52) and rounded to cents. Rent becomes $276.92 a week. Without ROUND the cell would hold 276.923… and only look like $276.92, so a column of such cells can total a cent or two away from the visible figures, which is exactly what invoices and payroll can't have.
Follow-up: How do you round to the nearest hundred?
Use a negative number of digits: ROUND(A2,-2). ROUNDUP and ROUNDDOWN always go one way.
6. How do you join text from two cells?
With the & operator: =A2&" "&B2 puts a space between two cells. Text you add yourself goes in double quotes. For many cells with the same separator, use TEXTJOIN.
| G | H | I | J | K | L | |
|---|---|---|---|---|---|---|
| 1 | SKU | Product | Price | Stock | Label | |
| 2 | PL-101 | Fern | $9.50 | 40 | Fern (PL-101) | |
| 3 | PL-104 | Monstera | $34.00 | 12 | Monstera (PL-104) | |
| 4 | PL-107 | Snake plant | $22.00 | 25 | Snake plant (PL-107) | |
| 5 | PT-210 | Terracotta pot | $12.50 | 60 | Terracotta pot (PT-210) | |
| 6 | PT-212 | Ceramic pot | $19.00 | 18 | Ceramic pot (PT-212) | |
| 7 | TL-301 | Watering can | $18.00 | 9 | Watering can (TL-301) | |
| 8 | SL-401 | Potting mix | $7.25 | 80 | Potting mix (SL-401) |
Each label is the product name, a space and an opening bracket, the SKU, and a closing bracket: the first row reads Fern (PL-101). The pieces in quotes are typed exactly as they should appear, spaces included. See CONCAT vs CONCATENATE vs TEXTJOIN for the functions that do the same.
7. How does IF work? Write one.
IF(test, value_if_true, value_if_false) checks a condition and returns one of two results. =IF(D2>=50,"Pass","Fail") shows Pass for a score of 50 or more and Fail otherwise.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Student | Class | Hours | Score | Result |
| 2 | Noor | A | 2 | 48 | Fail |
| 3 | Mateo | B | 5 | 66 | Pass |
| 4 | Hana | A | 8 | 81 | Pass |
| 5 | Ollie | B | 3 | 55 | Pass |
| 6 | Zara | A | 10 | 93 | Pass |
| 7 | Ivan | B | 6 | 72 | Pass |
| 8 | Lea | A | 1 | 39 | Fail |
| 9 | Omar | B | 7 | 77 | Pass |
| 10 | Sara | A | 9 | 88 | Pass |
| 11 | Theo | B | 4 | 61 | Pass |
| 12 | Yuki | A | 6 | 70 | Pass |
| 13 | Bea | B | 8 | 84 | Pass |
Noor scored 48, so the test D2>=50 is FALSE and E2 shows Fail; Mateo's 66 passes. Interviewers listen for two details: >= when the rule says “50 or more”, and text results in double quotes. The IF, AND and OR guide goes further.
Follow-up: How do you test two conditions?
Put AND or OR inside the test: IF(AND(D2>=50,C2>=5),"Pass","Review") needs both to be true.
8. How do you count the days between two dates?
Subtract them: =end-start. Dates are numbers underneath (whole days), so the difference is a number of days. Format the result as a number, not a date.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Task | Owner | Start | Due | Hours | Days |
| 2 | Kickoff workshop | Mara | 2 Mar 2026 | 4 Mar 2026 | 6 | 2 |
| 3 | Content audit | Jonas | 5 Mar 2026 | 20 Mar 2026 | 24 | 15 |
| 4 | Wireframes | Priya | 16 Mar 2026 | 2 Apr 2026 | 40 | 17 |
| 5 | Visual design | Elif | 30 Mar 2026 | 17 Apr 2026 | 56 | 18 |
| 6 | Copywriting | Tomás | 1 Apr 2026 | 24 Apr 2026 | 32 | 23 |
| 7 | Build | Kenji | 13 Apr 2026 | 15 May 2026 | 120 | 32 |
| 8 | Testing | Sofia | 11 May 2026 | 22 May 2026 | 30 | 11 |
| 9 | Launch | Leo | 26 May 2026 | 27 May 2026 | 8 | 1 |
The kickoff workshop runs from 2 to 4 March, so F2 shows 2; the build stage takes 32 days. If the answer appears as a strange date instead of a number, the cell picked up a date format: switch it to General or Number. For working days only, see the NETWORKDAYS question below.
Follow-up: Does it include both the start and end day?
No: 4 March minus 2 March is 2. Add 1 if you need to count both days.
Intermediate Excel interview questions
9. Why do you put FALSE at the end of a VLOOKUP?
FALSE asks for an exact match. Leave it out and VLOOKUP does an approximate match, which assumes the first column is sorted and can quietly return a nearby row instead of an error.
| G | H | I | J | K | L | M | |
|---|---|---|---|---|---|---|---|
| 1 | SKU | Product | Price | Stock | SKU | PL-107 | |
| 2 | PL-101 | Fern | $9.50 | 40 | Stock | 25 | |
| 3 | PL-104 | Monstera | $34.00 | 12 | |||
| 4 | PL-107 | Snake plant | $22.00 | 25 | |||
| 5 | PT-210 | Terracotta pot | $12.50 | 60 | |||
| 6 | PT-212 | Ceramic pot | $19.00 | 18 | |||
| 7 | TL-301 | Watering can | $18.00 | 9 | |||
| 8 | SL-401 | Potting mix | $7.25 | 80 |
VLOOKUP looks for PL-107 in the first column of G2:J8 and returns the 4th column of that row, the stock: 25. The SKUs aren't sorted, so without FALSE the result could be another product's stock with no warning. That's the most common reason VLOOKUP returns the wrong value.
Follow-up: When is the approximate match useful?
For bands on a sorted table, like tax brackets or grade boundaries: it finds the largest value at or below the key.
10. What is INDEX MATCH and why use it instead of VLOOKUP?
INDEX(return_range, MATCH(key, lookup_range, 0)): MATCH finds the row where the key is, INDEX returns the value at that row from another column. It can look in either direction, doesn't break when columns are inserted, and works in every version.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Dept | Started | Born | Salary | Level | As of | Name | Grace Kim | ||
| 2 | Amara Osei | Sales | 15 Apr 2019 | 2 Aug 1990 | $58,000 | 2 | 30 Jun 2026 | Dept | Support | ||
| 3 | Ben Fischer | Support | 9 Jan 2023 | 21 Nov 1996 | $41,000 | 1 | |||||
| 4 | Lina Chen | Engineering | 1 Sep 2016 | 14 Mar 1987 | $88,000 | 4 | |||||
| 5 | Diego Alvarez | Sales | 28 Jun 2021 | 30 Jun 1993 | $52,000 | 2 | |||||
| 6 | Eva Novak | Finance | 12 Feb 2018 | 5 Dec 1985 | $74,000 | 3 | |||||
| 7 | Farid Haddad | Engineering | 4 Mar 2024 | 19 Jan 1998 | $68,000 | 2 | |||||
| 8 | Grace Kim | Support | 19 Oct 2020 | 27 Sep 1991 | $45,000 | 2 | |||||
| 9 | Hugo Martin | Finance | 11 May 2015 | 8 Apr 1979 | $88,000 | 4 | |||||
| 10 | Ines Varga | Engineering | 14 Nov 2022 | 28 Feb 1995 | $79,000 | 3 | |||||
| 11 | Kenji Mori | Sales | 25 Aug 2025 | 16 Jul 2000 | $39,000 | 1 |
MATCH finds Grace Kim at position 7 of the Name column, and INDEX returns the 7th value of the Dept column: Support. Because the two ranges are separate, the return column could just as well sit to the left of the names, which VLOOKUP can't do. Full walkthrough in the INDEX MATCH guide.
Follow-up: What does the 0 in MATCH do?
It asks for an exact match. Left out, MATCH assumes sorted data and can return the wrong position.
11. What does XLOOKUP do better than VLOOKUP?
XLOOKUP takes the search column and the return column separately, matches exactly by default, can look left, and has a built-in value for “not found”. The catch: it needs Excel 2021 or later, Microsoft 365 or Google Sheets.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Name | Dept | Started | Born | Salary | Level | As of | Name | Zoe Park | ||
| 2 | Amara Osei | Sales | 15 Apr 2019 | 2 Aug 1990 | $58,000 | 2 | 30 Jun 2026 | Salary | Not found | ||
| 3 | Ben Fischer | Support | 9 Jan 2023 | 21 Nov 1996 | $41,000 | 1 | |||||
| 4 | Lina Chen | Engineering | 1 Sep 2016 | 14 Mar 1987 | $88,000 | 4 | |||||
| 5 | Diego Alvarez | Sales | 28 Jun 2021 | 30 Jun 1993 | $52,000 | 2 | |||||
| 6 | Eva Novak | Finance | 12 Feb 2018 | 5 Dec 1985 | $74,000 | 3 | |||||
| 7 | Farid Haddad | Engineering | 4 Mar 2024 | 19 Jan 1998 | $68,000 | 2 | |||||
| 8 | Grace Kim | Support | 19 Oct 2020 | 27 Sep 1991 | $45,000 | 2 | |||||
| 9 | Hugo Martin | Finance | 11 May 2015 | 8 Apr 1979 | $88,000 | 4 | |||||
| 10 | Ines Varga | Engineering | 14 Nov 2022 | 28 Feb 1995 | $79,000 | 3 | |||||
| 11 | Kenji Mori | Sales | 25 Aug 2025 | 16 Jul 2000 | $39,000 | 1 |
Zoe Park isn't in the directory, so instead of #N/A the cell shows the fourth argument, Not found. Type a name that is in column A, like Eva Novak, and K2 shows her salary. There's no column number to count and nothing to forget at the end. Compared in detail in VLOOKUP vs XLOOKUP.
Follow-up: What if someone opens the file in Excel 2019?
XLOOKUP shows #NAME? there. For files shared with older versions, use INDEX MATCH.
12. How do you add up values that meet two conditions?
With SUMIFS: SUMIFS(sum_range, range1, criteria1, range2, criteria2). The numbers to add come first, then a range and condition pair for each test. A row is added only when every condition matches.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Month | Region | Product | Units | Revenue | North Fern | |
| 2 | Jan 2026 | North | Fern | 40 | $380.00 | $1,738.50 | |
| 3 | Jan 2026 | North | Monstera | 12 | $408.00 | ||
| 4 | Jan 2026 | South | Fern | 35 | $332.50 | ||
| 5 | Jan 2026 | South | Monstera | 9 | $306.00 | ||
| 6 | Feb 2026 | North | Fern | 44 | $418.00 | ||
| 7 | Feb 2026 | North | Monstera | 15 | $510.00 | ||
| 8 | Feb 2026 | South | Fern | 31 | $294.50 | ||
| 9 | Feb 2026 | South | Monstera | 11 | $374.00 | ||
| 10 | Mar 2026 | North | Fern | 52 | $494.00 | ||
| 11 | Mar 2026 | North | Monstera | 14 | $476.00 | ||
| 12 | Mar 2026 | South | Fern | 38 | $361.00 | ||
| 13 | Mar 2026 | South | Monstera | 13 | $442.00 | ||
| 14 | Apr 2026 | North | Fern | 47 | $446.50 | ||
| 15 | Apr 2026 | North | Monstera | 18 | $612.00 | ||
| 16 | Apr 2026 | South | Fern | 42 | $399.00 | ||
| 17 | Apr 2026 | South | Monstera | 16 | $544.00 |
Only rows where the region is North and the product is Fern are added: January's $380.00, February's $418.00, March's $494.00 and April's $446.50, for a total of $1,738.50. All ranges must be the same size, or SUMIFS returns #VALUE!. More patterns in the SUMIFS guide.
Follow-up: How do you add rows that match one condition or another?
SUMIFS only does AND. For OR, add two SUMIFS: one for each value.
13. How do you count cells that contain a word anywhere in them?
Use COUNTIF with wildcards: =COUNTIF(range,"*word*"). The asterisk stands for any number of characters, so the word can be at the start, middle or end. A question mark stands for exactly one character.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Pot items | 4 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
K1 shows 4: Terracotta pot, Ceramic pot and both Potting mix orders. That last one is the interview trap: “pot” matches any product containing those three letters, and COUNTIF ignores upper and lower case. To count only pots, match the end instead: "* pot".
Follow-up: How do you use a cell in the criteria?
Join it with &: COUNTIF(D2:D13,"*"&K2&"*"). A cell written inside the quotes is compared as text. See COUNTIF with a cell reference.
14. IFERROR or IFNA: which should you wrap around a lookup?
IFNA. It replaces only #N/A, the “not found” error, and lets every other error show. IFERROR replaces every error, so a broken range or a typo is hidden behind the same friendly message.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Order | SKU | Qty | Product | SKU | Product | ||
| 2 | 2001 | PL-104 | 2 | Monstera | PL-101 | Fern | ||
| 3 | 2002 | PT-210 | 1 | Terracotta pot | PL-104 | Monstera | ||
| 4 | 2003 | TL-301 | 3 | Watering can | PL-107 | Snake plant | ||
| 5 | 2004 | PL-101 | 1 | Fern | PT-210 | Terracotta pot | ||
| 6 | 2005 | SL-401 | 4 | Potting mix | PT-212 | Ceramic pot | ||
| 7 | 2006 | PL-104 | 1 | Monstera | TL-301 | Watering can | ||
| 8 | 2007 | PT-212 | 2 | Ceramic pot | SL-401 | Potting mix | ||
| 9 | 2008 | PL-999 | 1 | Not in list |
Order 2008's SKU PL-999 isn't in the price list, so its row shows Not in list while the other seven show their product names. If the formula had a real mistake, such as a column number past the table, it would still show #REF! instead of pretending the SKU was missing. Compared in IFERROR vs IFNA.
15. How would you assign grades or bands without a long nested IF?
Use IFS, which takes condition and result pairs in order and returns the first that's true: IFS(score>=80,"Merit",score>=50,"Pass",TRUE,"Fail"). The final TRUE is the catch-all. With many bands, a lookup on a boundaries table is tidier still.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Student | Class | Hours | Score | Band |
| 2 | Noor | A | 2 | 48 | Fail |
| 3 | Mateo | B | 5 | 66 | Pass |
| 4 | Hana | A | 8 | 81 | Merit |
| 5 | Ollie | B | 3 | 55 | Pass |
| 6 | Zara | A | 10 | 93 | Merit |
| 7 | Ivan | B | 6 | 72 | Pass |
| 8 | Lea | A | 1 | 39 | Fail |
| 9 | Omar | B | 7 | 77 | Pass |
| 10 | Sara | A | 9 | 88 | Merit |
| 11 | Theo | B | 4 | 61 | Pass |
| 12 | Yuki | A | 6 | 70 | Pass |
| 13 | Bea | B | 8 | 84 | Merit |
Hana's 81 meets the first test, so she gets Merit; Mateo's 66 fails it and meets the second, so Pass; Noor's 48 falls through to the TRUE at the end: Fail. Order matters: test the highest band first, or every score above 50 stops at Pass. See nested IF vs IFS.
Follow-up: Which versions have IFS?
Excel 2019 and later, Microsoft 365 and Google Sheets. In older files, nest IF instead.
16. How do you take the first name out of a full name?
Find the space and take everything before it: =LEFT(A2,FIND(" ",A2)-1). FIND returns the space's position, and LEFT takes one character fewer than that.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Name | Dept | Started | Born | Salary | Level | First name |
| 2 | Amara Osei | Sales | 15 Apr 2019 | 2 Aug 1990 | $58,000 | 2 | Amara |
| 3 | Ben Fischer | Support | 9 Jan 2023 | 21 Nov 1996 | $41,000 | 1 | Ben |
| 4 | Lina Chen | Engineering | 1 Sep 2016 | 14 Mar 1987 | $88,000 | 4 | Lina |
| 5 | Diego Alvarez | Sales | 28 Jun 2021 | 30 Jun 1993 | $52,000 | 2 | Diego |
| 6 | Eva Novak | Finance | 12 Feb 2018 | 5 Dec 1985 | $74,000 | 3 | Eva |
| 7 | Farid Haddad | Engineering | 4 Mar 2024 | 19 Jan 1998 | $68,000 | 2 | Farid |
| 8 | Grace Kim | Support | 19 Oct 2020 | 27 Sep 1991 | $45,000 | 2 | Grace |
| 9 | Hugo Martin | Finance | 11 May 2015 | 8 Apr 1979 | $88,000 | 4 | Hugo |
| 10 | Ines Varga | Engineering | 14 Nov 2022 | 28 Feb 1995 | $79,000 | 3 | Ines |
| 11 | Kenji Mori | Sales | 25 Aug 2025 | 16 Jul 2000 | $39,000 | 1 | Kenji |
In “Amara Osei” the space is the 6th character, so LEFT takes 5 and G2 shows Amara. The minus 1 is what interviewers watch for: without it the first name keeps its trailing space. A name with no space gives #VALUE!, because FIND has nothing to find.
Follow-up: And the last name?
Take everything after the space: =MID(A2,FIND(" ",A2)+1,100), or TEXTAFTER(A2," ") in Excel 2024 and Microsoft 365.
17. TRIM didn't remove the extra space. Why, and how do you fix it?
Text copied from web pages often has non-breaking spaces (character 160) and line breaks, which TRIM leaves alone. Turn the non-breaking spaces into normal ones with SUBSTITUTE and CHAR(160), remove line breaks with CLEAN, then TRIM.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Customer | Phone | Order | Amount | City | City (clean) |
| 2 | Okafor, Mara | +44 20 7946 0321 | ORD-2026-0412 | $1,250.00 | London | London |
| 3 | Lind, Jonas | +46 40 123 456 | ORD-2026-0413 | $89.90 | Malmö | Malmö |
| 4 | Raman, Priya | +91 20 5550 1234 | ORD-2026-0419 | $2,040.00 | Pune | Pune |
| 5 | Ruiz, Tomás | +34 954 000 111 | ORD-2026-0420 | $15.00 | Seville | Seville |
| 6 | Demir, Elif | +90 232 555 0199 | ORD-2026-0425 | $310.50 | Izmir | Izmir |
| 7 | Mori, Kenji | +81 6 5550 7788 | ORD-2026-0431 | $799.00 | Osaka | Osaka |
The City column looks fine but London, Pune and Osaka carry non-breaking spaces and Seville ends in a line break, so lookups and counts on it fail. CLEAN removes the line break, SUBSTITUTE swaps each character 160 for a normal space, and TRIM strips the spaces at the ends: every row now reads just the city. The clean text guide covers the rest.
Follow-up: How do you prove a cell has hidden characters?
Compare LEN(E2) with the number of letters you can see. London should be 6.
Advanced Excel interview questions
18. How do you calculate someone's age or years of service?
DATEDIF(start, end, "Y") gives complete years between two dates. Use the birth date for age, the start date for tenure, and a fixed “as of” cell (or TODAY()) for the end.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Name | Dept | Started | Born | Salary | Level | Age | As of |
| 2 | Amara Osei | Sales | 15 Apr 2019 | 2 Aug 1990 | $58,000 | 2 | 35 | 30 Jun 2026 |
| 3 | Ben Fischer | Support | 9 Jan 2023 | 21 Nov 1996 | $41,000 | 1 | 29 | |
| 4 | Lina Chen | Engineering | 1 Sep 2016 | 14 Mar 1987 | $88,000 | 4 | 39 | |
| 5 | Diego Alvarez | Sales | 28 Jun 2021 | 30 Jun 1993 | $52,000 | 2 | 33 | |
| 6 | Eva Novak | Finance | 12 Feb 2018 | 5 Dec 1985 | $74,000 | 3 | 40 | |
| 7 | Farid Haddad | Engineering | 4 Mar 2024 | 19 Jan 1998 | $68,000 | 2 | 28 | |
| 8 | Grace Kim | Support | 19 Oct 2020 | 27 Sep 1991 | $45,000 | 2 | 34 | |
| 9 | Hugo Martin | Finance | 11 May 2015 | 8 Apr 1979 | $88,000 | 4 | 47 | |
| 10 | Ines Varga | Engineering | 14 Nov 2022 | 28 Feb 1995 | $79,000 | 3 | 31 | |
| 11 | Kenji Mori | Sales | 25 Aug 2025 | 16 Jul 2000 | $39,000 | 1 | 25 |
Amara was born on 2 August 1990, so on the as-of date, 30 June 2026, she has completed 35 years: her birthday hasn't come round yet that year. Subtracting the years (2026 − 1990 = 36) would get that wrong, which is the point of the question. DATEDIF works in Excel and Google Sheets; Microsoft keeps it for compatibility with older workbooks. More in the DATEDIF guide.
Follow-up: Why use a cell for the end date instead of TODAY()?
So the result doesn't change every day and the file can be checked. Swap in TODAY() when you want a live figure.
19. How do you count working days between two dates, without holidays?
NETWORKDAYS(start, end, [holidays]) counts Monday to Friday, both dates included, and skips any dates in the holidays range.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Task | Owner | Start | Due | Hours | Work days | Holidays | |
| 2 | Kickoff workshop | Mara | 2 Mar 2026 | 4 Mar 2026 | 6 | 3 | 3 Apr 2026 | |
| 3 | Content audit | Jonas | 5 Mar 2026 | 20 Mar 2026 | 24 | 12 | 6 Apr 2026 | |
| 4 | Wireframes | Priya | 16 Mar 2026 | 2 Apr 2026 | 40 | 14 | 1 May 2026 | |
| 5 | Visual design | Elif | 30 Mar 2026 | 17 Apr 2026 | 56 | 13 | ||
| 6 | Copywriting | Tomás | 1 Apr 2026 | 24 Apr 2026 | 32 | 16 | ||
| 7 | Build | Kenji | 13 Apr 2026 | 15 May 2026 | 120 | 24 | ||
| 8 | Testing | Sofia | 11 May 2026 | 22 May 2026 | 30 | 10 | ||
| 9 | Launch | Leo | 26 May 2026 | 27 May 2026 | 8 | 2 |
The kickoff workshop, Monday 2 to Wednesday 4 March, takes 3 working days. Wireframes run from 16 March to 2 April with no listed holiday inside, so 14. Copywriting runs over 3 and 6 April, both in the holiday list, which brings it down to 16. Lock the holiday range with $ so it doesn't slide.
Follow-up: What if the weekend isn't Saturday and Sunday?
Use NETWORKDAYS.INTL, which takes a weekend code or a pattern like "0000011".
20. How do you count the unique values in a column?
In Excel 2021 or later, Microsoft 365 and Google Sheets: =COUNTA(UNIQUE(range)). UNIQUE returns each value once, and COUNTA counts them.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Customers | 9 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
There are 12 orders but Mara, Jonas and Priya each ordered twice, so K1 shows 9 different customers. Without UNIQUE, the classic answer is SUMPRODUCT(1/COUNTIF(C2:C13,C2:C13)), worth knowing for older versions. See count unique with criteria for counting distinct values in one group.
Follow-up: How do you list the unique values instead of counting them?
Use UNIQUE on its own; the list spills down. Wrap it in SORT to put it in order.
21. How do you pull every row that meets a condition into a new list?
With FILTER: FILTER(array, include, [if_empty]). It returns every row where the include test is TRUE and spills the results down, updating when the data changes.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | Sep over 13k | |
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | Lina Chen | |
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | Eva Novak | |
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | Farid Haddad | |
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | Hugo Martin | |
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | ||
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | ||
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | ||
| 9 | Hugo Martin | West | $14,500 | $15,800 | $15,100 | $42,000 |
Four reps sold more than 13,000 in September: Lina Chen, Eva Novak, Farid Haddad and Hugo Martin. One formula in H2 spills into the four cells below it. If something blocks those cells you get #SPILL!; if nobody matches, #CALC!, unless you give the third argument. More in the FILTER guide.
Follow-up: How do you filter on two conditions?
Multiply the tests for AND, (B2:B9="North")*(E2:E9>13000), or add them for OR.
22. What does SUMPRODUCT do, and when is it useful?
It multiplies ranges row by row and adds the results. With comparisons inside, it becomes a conditional total that can do things SUMIFS can't, such as multiplying two columns first.
| A | B | C | D | E | F | G | H | I | J | K | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Order | Date | Customer | Product | Category | Qty | Price | Status | Shipped revenue | $304.75 | |
| 2 | 1001 | 2 Mar 2026 | Mara Okafor | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 3 | 1002 | 2 Mar 2026 | Jonas Lind | Terracotta pot | Pots | 3 | $12.50 | Shipped | |||
| 4 | 1003 | 3 Mar 2026 | Priya Raman | Snake plant | Plants | 2 | $22.00 | Shipped | |||
| 5 | 1004 | 4 Mar 2026 | Tomás Ruiz | Watering can | Tools | 1 | $18.00 | Pending | |||
| 6 | 1005 | 5 Mar 2026 | Elif Demir | Fern | Plants | 4 | $9.50 | Shipped | |||
| 7 | 1006 | 5 Mar 2026 | Mara Okafor | Potting mix | Soil | 2 | $7.25 | Returned | |||
| 8 | 1007 | 6 Mar 2026 | Kenji Mori | Pruning shears | Tools | 1 | $24.00 | Shipped | |||
| 9 | 1008 | 7 Mar 2026 | Ines Varga | Ceramic pot | Pots | 2 | $19.00 | Pending | |||
| 10 | 1009 | 8 Mar 2026 | Jonas Lind | Monstera | Plants | 1 | $34.00 | Shipped | |||
| 11 | 1010 | 9 Mar 2026 | Sofia Rossi | Fern | Plants | 6 | $9.50 | Shipped | |||
| 12 | 1011 | 10 Mar 2026 | Priya Raman | Potting mix | Soil | 5 | $7.25 | Shipped | |||
| 13 | 1012 | 11 Mar 2026 | Leo Brandt | Snake plant | Plants | 1 | $22.00 | Pending |
For each order, the status test gives 1 for Shipped and 0 otherwise, which is multiplied by quantity and price. The pending and returned orders count as zero, and the shipped revenue is $304.75, with no helper column. SUMIFS couldn't do this directly, because there's no single column of revenue to add. Compared in SUMPRODUCT vs SUMIFS.
Follow-up: Why does it sometimes return #VALUE!?
The ranges have different sizes, or one contains text where a number should be. See SUMPRODUCT #VALUE!.
23. How do you look up a value by both its row and its column?
Find the column first, then the row. With XLOOKUP, nest one inside the other: the inner XLOOKUP returns the whole month column, and the outer one picks the rep's row from it. INDEX with two MATCHes does the same in any version.
| A | B | C | D | E | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target | Rep | Lina Chen | ||||
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 | Month | Aug | ||||
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 | Sales | $14,800 | ||||
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 | ||||||
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 | ||||||
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 | ||||||
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 | ||||||
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 | ||||||
| 9 | Hugo Martin | West | $14,500 | $15,800 | $15,100 | $42,000 |
The inner XLOOKUP finds Aug in the header row and returns that column, D2:D9. The outer one finds Lina Chen in the names and returns her value from it: $14,800. Change L1 or L2 and the result follows. The two-way lookup guide shows the INDEX and MATCH version.
24. What is LET, and why would you use it?
LET names parts of a formula: LET(name, value, …, calculation). Each part is worked out once and the formula reads like a sentence, which matters when a value is used more than once.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Category | Type | Budget | Actual | Check |
| 2 | Rent | Fixed | $1,200.00 | $1,200.00 | OK |
| 3 | Groceries | Variable | $450.00 | $512.40 | Review |
| 4 | Utilities | Fixed | $160.00 | $148.75 | OK |
| 5 | Transport | Variable | $120.00 | $96.50 | OK |
| 6 | Phone & internet | Fixed | $65.00 | $65.00 | OK |
| 7 | Eating out | Variable | $150.00 | $203.10 | Review |
| 8 | Subscriptions | Fixed | $38.00 | $44.97 | Review |
| 9 | Gym | Fixed | $40.00 | $40.00 | OK |
| 10 | Gifts | Variable | $60.00 | $25.00 | OK |
| 11 | Savings | Fixed | $300.00 | $300.00 | OK |
For each category, diff is actual minus budget and pct is that difference as a share of the budget. Anything more than 10% over is flagged: Groceries, Eating out and Subscriptions show Review, the rest show OK. Without LET the subtraction would appear twice. It needs Excel 2021 or later, Microsoft 365 or Google Sheets; see the LET guide.
Follow-up: Can a LET name be used in another cell?
No, names exist only inside that one formula.
25. How do you flag duplicate entries in a list?
Count how many times the value has appeared so far with an expanding range: =IF(COUNTIF($A$2:A2,A2)>1,"Duplicate",""). The first occurrence stays clean and every repeat is flagged.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Name | Age | Plan | Joined | Repeat? | |
| 2 | mara@example.com | Mara | 34 | Pro | 12 Jan 2026 | |
| 3 | jonas@example.org | Jonas | 41 | Basic | 15 Jan 2026 | |
| 4 | MARA@example.com | Mara O. | 34 | Pro | 20 Jan 2026 | Duplicate |
| 5 | priya@example.net | Priya | Team | 2 Feb 2026 | ||
| 6 | tomas@example.com | Tomás | n/a | basic | 9 Feb 2026 | |
| 7 | elif@example.org | Elif | 29 | Pro | 17 Feb 2026 | |
| 8 | jonas@example.org | Jonas Lind | 41 | Basic | 23 Feb 2026 | Duplicate |
| 9 | kenji@example.net | Kenji | 52 | Enterprise | 3 Mar 2026 | |
| 10 | sofia@example.com | Sofia | 23 | Team | 8 Mar 2026 | |
| 11 | leo@example.org | Leo | 17 | Basic | 14 Mar 2026 |
The range starts locked at A2 and grows one row each time the formula is copied down. MARA@example.com in row 4 is flagged, because COUNTIF ignores case and Mara signed up in row 2, and the second jonas@example.org in row 8 is flagged too. That's two repeats in ten rows. The remove duplicates guide shows how to list or delete them.
Follow-up: How do you flag every copy, including the first?
Count over the whole fixed range: COUNTIF($A$2:$A$11,A2)>1.
Tips for the interview itself
- Say what the formula does before you type it: “I'll look up the SKU in the price list and return the third column”. Interviewers mark the reasoning as much as the result.
- Point at cells instead of typing numbers. A formula that reads
=B2*C2still works when the data changes; one that reads=14*6.5doesn't, and reviewers check. - Check your answer a second way before you say it's done: count the rows by eye, add two values by hand, or change an input and watch the result move.
- If you don't remember an argument order, say so and describe what you'd check. Knowing that SUMIFS puts the sum range first is useful; knowing where to confirm it is just as good.
- Mention the version question when it matters: XLOOKUP, FILTER and LET need Excel 2021, Excel 2024, Microsoft 365 or Google Sheets, so say what you'd use in an older file.
- Keep errors visible while you build: an #N/A tells you something is wrong; wrapping everything in IFERROR from the start hides it.
- Practise on a live sheet beforehand, not just by reading. The practice pages grade your formula against changed data, the way a reviewer would.
Want to see where you stand first? Take the free Excel test, or try the basic, intermediate and advanced practice questions.
These are typical formula questions written by formulastreak, not any employer's actual questions. formulastreak is independent and this isn't an official Microsoft or Google certification.
Sources
Official documentation the facts on this page were checked against.
- Microsoft Support: SUM function
- Google Docs Editors Help: SUM
- Microsoft Support: COUNT function
- Google Docs Editors Help: COUNT
- Microsoft Support: COUNTA function
- Google Docs Editors Help: COUNTA
- Microsoft Support: IF function
- Google Docs Editors Help: IF
- Microsoft Support: ROUND function
- Google Docs Editors Help: ROUND
- Microsoft Support: TEXTJOIN function
- Google Docs Editors Help: TEXTJOIN
- Microsoft Support: NETWORKDAYS function
- Google Docs Editors Help: NETWORKDAYS
- Microsoft Support: VLOOKUP function
- Google Docs Editors Help: VLOOKUP
- Microsoft Support: INDEX function
- Google Docs Editors Help: INDEX
- Microsoft Support: MATCH function
- Google Docs Editors Help: MATCH
- Microsoft Support: XLOOKUP function
- Google Docs Editors Help: XLOOKUP
- Microsoft Support: SUMIFS function
- Google Docs Editors Help: SUMIFS
- Microsoft Support: COUNTIF function
- Google Docs Editors Help: COUNTIF
- Microsoft Support: IFERROR function
- Google Docs Editors Help: IFERROR
- Microsoft Support: IFS function
- Google Docs Editors Help: IFS
- Microsoft Support: LEFT function
- Google Docs Editors Help: LEFT
- Google Docs Editors Help: FIND
- Microsoft Support: MID function
- Google Docs Editors Help: MID
- Microsoft Support: TEXTAFTER function
- Microsoft Support: TRIM function
- Google Docs Editors Help: TRIM
- Microsoft Support: SUBSTITUTE function
- Google Docs Editors Help: SUBSTITUTE
- Microsoft Support: CLEAN function
- Google Docs Editors Help: CLEAN
- Microsoft Support: CHAR function
- Google Docs Editors Help: CHAR
- Microsoft Support: DATEDIF function
- Google Docs Editors Help: DATEDIF
- Microsoft Support: NETWORKDAYS.INTL function
- Google Docs Editors Help: NETWORKDAYS.INTL
- Microsoft Support: UNIQUE function
- Google Docs Editors Help: UNIQUE
- Microsoft Support: SUMPRODUCT function
- Google Docs Editors Help: SUMPRODUCT
- Microsoft Support: FILTER function
- Google Docs Editors Help: FILTER
- Microsoft Support: LET function
- Google Docs Editors Help: LET