formulastreak

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.

Saturday bakery stall · edit B8 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultB8 = 94
ABCD
1ItemSoldPriceTotal
2Sourdough loaf14$6.50
3Croissant32$2.80
4Cinnamon bun21$3.20
5Baguette18$3.00
6Rye loaf9$7.00
7
8Sold in total94

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.

Q3 sales team · edit G2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultG2 = 13.0%
ABCDEFG
1RepRegionJulAugSepTargetJul share
2Amara OseiNorth$12,400$13,100$11,800$36,00013.0%
3Ben FischerSouth$9,800$10,250$12,100$30,00010.3%
4Lina ChenEast$15,200$14,800$16,900$45,00016.0%
5Diego AlvarezWest$8,700$9,100$8,400$28,0009.1%
6Eva NovakNorth$11,200$12,600$13,900$36,00011.8%
7Farid HaddadSouth$13,300$12,900$14,100$39,00014.0%
8Grace KimEast$10,100$9,600$10,800$33,00010.6%
9Hugo MartinWest$14,500$15,800$15,100$42,00015.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.

Member sign-ups · edit H1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultH1 = 7
ABCDEFGH
1EmailNameAgePlanJoinedCOUNT of Age7
2mara@example.comMara34Pro12 Jan 2026COUNTA of Age9
3jonas@example.orgJonas41Basic15 Jan 2026
4MARA@example.comMara O.34Pro20 Jan 2026
5priya@example.netPriyaTeam2 Feb 2026
6tomas@example.comTomásn/abasic9 Feb 2026
7elif@example.orgElif29Pro17 Feb 2026
8jonas@example.orgJonas Lind41Basic23 Feb 2026
9kenji@example.netKenji52Enterprise3 Mar 2026
10sofia@example.comSofia23Team8 Mar 2026
11leo@example.orgLeo17Basic14 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.

Q3 sales team · edit G2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultG2 = 5.6%
ABCDEFG
1RepRegionJulAugSepTargetAug vs Jul
2Amara OseiNorth$12,400$13,100$11,800$36,0005.6%
3Ben FischerSouth$9,800$10,250$12,100$30,0004.6%
4Lina ChenEast$15,200$14,800$16,900$45,000-2.6%
5Diego AlvarezWest$8,700$9,100$8,400$28,0004.6%
6Eva NovakNorth$11,200$12,600$13,900$36,00012.5%
7Farid HaddadSouth$13,300$12,900$14,100$39,000-3.0%
8Grace KimEast$10,100$9,600$10,800$33,000-5.0%
9Hugo MartinWest$14,500$15,800$15,100$42,0009.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.

March household budget · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = $276.92
ABCDE
1CategoryTypeBudgetActualPer week
2RentFixed$1,200.00$1,200.00$276.92
3GroceriesVariable$450.00$512.40$118.25
4UtilitiesFixed$160.00$148.75$34.33
5TransportVariable$120.00$96.50$22.27
6Phone & internetFixed$65.00$65.00$15.00
7Eating outVariable$150.00$203.10$46.87
8SubscriptionsFixed$38.00$44.97$10.38
9GymFixed$40.00$40.00$9.23
10GiftsVariable$60.00$25.00$5.77
11SavingsFixed$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.

Orders and price list · edit L2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultL2 = Fern (PL-101)
GHIJKL
1SKUProductPriceStockLabel
2PL-101Fern$9.5040Fern (PL-101)
3PL-104Monstera$34.0012Monstera (PL-104)
4PL-107Snake plant$22.0025Snake plant (PL-107)
5PT-210Terracotta pot$12.5060Terracotta pot (PT-210)
6PT-212Ceramic pot$19.0018Ceramic pot (PT-212)
7TL-301Watering can$18.009Watering can (TL-301)
8SL-401Potting mix$7.2580Potting 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.

Exam results · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = Fail
ABCDE
1StudentClassHoursScoreResult
2NoorA248Fail
3MateoB566Pass
4HanaA881Pass
5OllieB355Pass
6ZaraA1093Pass
7IvanB672Pass
8LeaA139Fail
9OmarB777Pass
10SaraA988Pass
11TheoB461Pass
12YukiA670Pass
13BeaB884Pass

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.

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 2
ABCDEF
1TaskOwnerStartDueHoursDays
2Kickoff workshopMara2 Mar 20264 Mar 202662
3Content auditJonas5 Mar 202620 Mar 20262415
4WireframesPriya16 Mar 20262 Apr 20264017
5Visual designElif30 Mar 202617 Apr 20265618
6CopywritingTomás1 Apr 202624 Apr 20263223
7BuildKenji13 Apr 202615 May 202612032
8TestingSofia11 May 202622 May 20263011
9LaunchLeo26 May 202627 May 202681

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.

Orders and price list · edit M2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultM2 = 25
GHIJKLM
1SKUProductPriceStockSKUPL-107
2PL-101Fern$9.5040Stock25
3PL-104Monstera$34.0012
4PL-107Snake plant$22.0025
5PT-210Terracotta pot$12.5060
6PT-212Ceramic pot$19.0018
7TL-301Watering can$18.009
8SL-401Potting mix$7.2580

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.

Team directory · edit K2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK2 = Support
ABCDEFGHIJK
1NameDeptStartedBornSalaryLevelAs ofNameGrace Kim
2Amara OseiSales15 Apr 20192 Aug 1990$58,000230 Jun 2026DeptSupport
3Ben FischerSupport9 Jan 202321 Nov 1996$41,0001
4Lina ChenEngineering1 Sep 201614 Mar 1987$88,0004
5Diego AlvarezSales28 Jun 202130 Jun 1993$52,0002
6Eva NovakFinance12 Feb 20185 Dec 1985$74,0003
7Farid HaddadEngineering4 Mar 202419 Jan 1998$68,0002
8Grace KimSupport19 Oct 202027 Sep 1991$45,0002
9Hugo MartinFinance11 May 20158 Apr 1979$88,0004
10Ines VargaEngineering14 Nov 202228 Feb 1995$79,0003
11Kenji MoriSales25 Aug 202516 Jul 2000$39,0001

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.

Team directory · edit K2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK2 = Not found
ABCDEFGHIJK
1NameDeptStartedBornSalaryLevelAs ofNameZoe Park
2Amara OseiSales15 Apr 20192 Aug 1990$58,000230 Jun 2026SalaryNot found
3Ben FischerSupport9 Jan 202321 Nov 1996$41,0001
4Lina ChenEngineering1 Sep 201614 Mar 1987$88,0004
5Diego AlvarezSales28 Jun 202130 Jun 1993$52,0002
6Eva NovakFinance12 Feb 20185 Dec 1985$74,0003
7Farid HaddadEngineering4 Mar 202419 Jan 1998$68,0002
8Grace KimSupport19 Oct 202027 Sep 1991$45,0002
9Hugo MartinFinance11 May 20158 Apr 1979$88,0004
10Ines VargaEngineering14 Nov 202228 Feb 1995$79,0003
11Kenji MoriSales25 Aug 202516 Jul 2000$39,0001

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.

Monthly sales by region · edit G2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultG2 = $1,738.50
ABCDEFG
1MonthRegionProductUnitsRevenueNorth Fern
2Jan 2026NorthFern40$380.00$1,738.50
3Jan 2026NorthMonstera12$408.00
4Jan 2026SouthFern35$332.50
5Jan 2026SouthMonstera9$306.00
6Feb 2026NorthFern44$418.00
7Feb 2026NorthMonstera15$510.00
8Feb 2026SouthFern31$294.50
9Feb 2026SouthMonstera11$374.00
10Mar 2026NorthFern52$494.00
11Mar 2026NorthMonstera14$476.00
12Mar 2026SouthFern38$361.00
13Mar 2026SouthMonstera13$442.00
14Apr 2026NorthFern47$446.50
15Apr 2026NorthMonstera18$612.00
16Apr 2026SouthFern42$399.00
17Apr 2026SouthMonstera16$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.

Leaf & Loam orders · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = 4
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusPot items4
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

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.

Orders and price list · edit D2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultD2 = Monstera
ABCDEFGH
1OrderSKUQtyProductSKUProduct
22001PL-1042MonsteraPL-101Fern
32002PT-2101Terracotta potPL-104Monstera
42003TL-3013Watering canPL-107Snake plant
52004PL-1011FernPT-210Terracotta pot
62005SL-4014Potting mixPT-212Ceramic pot
72006PL-1041MonsteraTL-301Watering can
82007PT-2122Ceramic potSL-401Potting mix
92008PL-9991Not 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.

Exam results · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = Fail
ABCDE
1StudentClassHoursScoreBand
2NoorA248Fail
3MateoB566Pass
4HanaA881Merit
5OllieB355Pass
6ZaraA1093Merit
7IvanB672Pass
8LeaA139Fail
9OmarB777Pass
10SaraA988Merit
11TheoB461Pass
12YukiA670Pass
13BeaB884Merit

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.

Team directory · edit G2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultG2 = Amara
ABCDEFG
1NameDeptStartedBornSalaryLevelFirst name
2Amara OseiSales15 Apr 20192 Aug 1990$58,0002Amara
3Ben FischerSupport9 Jan 202321 Nov 1996$41,0001Ben
4Lina ChenEngineering1 Sep 201614 Mar 1987$88,0004Lina
5Diego AlvarezSales28 Jun 202130 Jun 1993$52,0002Diego
6Eva NovakFinance12 Feb 20185 Dec 1985$74,0003Eva
7Farid HaddadEngineering4 Mar 202419 Jan 1998$68,0002Farid
8Grace KimSupport19 Oct 202027 Sep 1991$45,0002Grace
9Hugo MartinFinance11 May 20158 Apr 1979$88,0004Hugo
10Ines VargaEngineering14 Nov 202228 Feb 1995$79,0003Ines
11Kenji MoriSales25 Aug 202516 Jul 2000$39,0001Kenji

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.

CRM export · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = London
ABCDEF
1CustomerPhoneOrderAmountCityCity (clean)
2Okafor, Mara+44 20 7946 0321ORD-2026-0412$1,250.00London London
3Lind, Jonas+46 40 123 456ORD-2026-0413$89.90MalmöMalmö
4Raman, Priya+91 20 5550 1234ORD-2026-0419$2,040.00 PunePune
5Ruiz, Tomás+34 954 000 111ORD-2026-0420$15.00Seville Seville
6Demir, Elif+90 232 555 0199ORD-2026-0425$310.50IzmirIzmir
7Mori, Kenji+81 6 5550 7788ORD-2026-0431$799.00Osaka  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.

Team directory · edit G2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultG2 = 35
ABCDEFGH
1NameDeptStartedBornSalaryLevelAgeAs of
2Amara OseiSales15 Apr 20192 Aug 1990$58,00023530 Jun 2026
3Ben FischerSupport9 Jan 202321 Nov 1996$41,000129
4Lina ChenEngineering1 Sep 201614 Mar 1987$88,000439
5Diego AlvarezSales28 Jun 202130 Jun 1993$52,000233
6Eva NovakFinance12 Feb 20185 Dec 1985$74,000340
7Farid HaddadEngineering4 Mar 202419 Jan 1998$68,000228
8Grace KimSupport19 Oct 202027 Sep 1991$45,000234
9Hugo MartinFinance11 May 20158 Apr 1979$88,000447
10Ines VargaEngineering14 Nov 202228 Feb 1995$79,000331
11Kenji MoriSales25 Aug 202516 Jul 2000$39,000125

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.

Website relaunch plan · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = 3
ABCDEFGH
1TaskOwnerStartDueHoursWork daysHolidays
2Kickoff workshopMara2 Mar 20264 Mar 2026633 Apr 2026
3Content auditJonas5 Mar 202620 Mar 202624126 Apr 2026
4WireframesPriya16 Mar 20262 Apr 202640141 May 2026
5Visual designElif30 Mar 202617 Apr 20265613
6CopywritingTomás1 Apr 202624 Apr 20263216
7BuildKenji13 Apr 202615 May 202612024
8TestingSofia11 May 202622 May 20263010
9LaunchLeo26 May 202627 May 202682

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.

Leaf & Loam orders · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = 9
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusCustomers9
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

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.

Q3 sales team · edit H2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultH2 = Lina Chen
ABCDEFGH
1RepRegionJulAugSepTargetSep over 13k
2Amara OseiNorth$12,400$13,100$11,800$36,000Lina Chen
3Ben FischerSouth$9,800$10,250$12,100$30,000Eva Novak
4Lina ChenEast$15,200$14,800$16,900$45,000Farid Haddad
5Diego AlvarezWest$8,700$9,100$8,400$28,000Hugo Martin
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$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.

Leaf & Loam orders · edit K1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultK1 = $304.75
ABCDEFGHIJK
1OrderDateCustomerProductCategoryQtyPriceStatusShipped revenue$304.75
210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped
310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped
410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped
510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending
610055 Mar 2026Elif DemirFernPlants4$9.50Shipped
710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned
810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped
910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending
1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped
1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped
12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped
13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending

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.

Q3 sales team · edit L3 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultL3 = $14,800
ABCDEFGHIJKL
1RepRegionJulAugSepTargetRepLina Chen
2Amara OseiNorth$12,400$13,100$11,800$36,000MonthAug
3Ben FischerSouth$9,800$10,250$12,100$30,000Sales$14,800
4Lina ChenEast$15,200$14,800$16,900$45,000
5Diego AlvarezWest$8,700$9,100$8,400$28,000
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$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.

March household budget · edit E2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultE2 = OK
ABCDE
1CategoryTypeBudgetActualCheck
2RentFixed$1,200.00$1,200.00OK
3GroceriesVariable$450.00$512.40Review
4UtilitiesFixed$160.00$148.75OK
5TransportVariable$120.00$96.50OK
6Phone & internetFixed$65.00$65.00OK
7Eating outVariable$150.00$203.10Review
8SubscriptionsFixed$38.00$44.97Review
9GymFixed$40.00$40.00OK
10GiftsVariable$60.00$25.00OK
11SavingsFixed$300.00$300.00OK

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.

Member sign-ups · edit F2 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultF2 = (empty)
ABCDEF
1EmailNameAgePlanJoinedRepeat?
2mara@example.comMara34Pro12 Jan 2026
3jonas@example.orgJonas41Basic15 Jan 2026
4MARA@example.comMara O.34Pro20 Jan 2026Duplicate
5priya@example.netPriyaTeam2 Feb 2026
6tomas@example.comTomásn/abasic9 Feb 2026
7elif@example.orgElif29Pro17 Feb 2026
8jonas@example.orgJonas Lind41Basic23 Feb 2026Duplicate
9kenji@example.netKenji52Enterprise3 Mar 2026
10sofia@example.comSofia23Team8 Mar 2026
11leo@example.orgLeo17Basic14 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*C2 still works when the data changes; one that reads =14*6.5 doesn'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.

Practise job-test formulas on a live sheet

Lesson 52, Warm-up round (Unit 16, Job test pack), has 4 graded exercises, checked instantly, with steps and hints when you're stuck. Pro