Excel test prep · Lesson 5 of 9

Excel formulas test: 24 questions on lookups, IF and SUMIFS

Practice Excel formulas test for interviews: 24 questions on XLOOKUP, VLOOKUP, INDEX/MATCH, IF, IFS, SUMIFS, COUNTIFS, text and dates, with answers.

Intermediate 30 min read

Formula questions are the core of almost every Excel assessment, at every level. This test has 24 questions on lookups, IF logic, conditional sums and counts, text, dates and rounding. Allow about 30 minutes. Every question uses the staff table below, so you can check each answer in real Excel by typing the table into a blank sheet starting at A1.

The explanations link to the function pages and to the lessons Lookup guide: VLOOKUP vs INDEX/MATCH vs XLOOKUP, IF and logical formulas: AND, OR, NOT, IFS and SWITCH and Counting and summing with criteria: COUNTIFS, SUMIFS, SUMPRODUCT. Dates in column E are real Excel dates, shown here in year-month-day form.

ABCDE
1IDNameDeptSalaryStart
2E01AnaSales420002019-04-01
3E02BenIT550002021-09-15
4E03CaraSales470002023-01-09
5E04DevHR390002018-11-20
6E05EliIT610002016-06-01
7E06FaySales510002020-07-13
8E07GusHR440002024-03-04

Staff table in A1:E8, used by every question on this page. Column E holds dates.

Part 1: Lookups

1. What does =XLOOKUP("E05",A2:A8,B2:B8) return?

2. What does =VLOOKUP("E03",A2:E8,4,FALSE) return?

3. What does =INDEX(B2:B8,MATCH(MAX(D2:D8),D2:D8,0)) return?

4. What does =XLOOKUP("E09",A2:A8,B2:B8,"Unknown") return?

5. What does =MATCH("HR",C2:C8,0) return?

6. Which formula returns the ID of the employee named Fay?

7. What does =XLOOKUP(50000,D2:D8,B2:B8,,1) return?

Part 2: IF and logic

8. What does =IF(AND(C3="IT",D3>50000),"Senior","Other") return?

9. What does =IFS(D2>=60000,"A",D2>=45000,"B",TRUE,"C") return?

10. What does =SWITCH(C5,"Sales",1,"IT",2,0) return?

11. What does =IF(OR(C8="HR",D8>50000),"Yes","No") return?

12. Find the bug: =IF(D2>40000,"High",IF(D2>50000,"Very high","Low")). Which statement is true?

13. What does =COUNTIF(D2:D8,">"&D2) return?

Part 3: Conditional sums and counts

14. What does =SUMIFS(D2:D8,C2:C8,"Sales") return?

15. What does =COUNTIFS(C2:C8,"IT",D2:D8,">=55000") return?

16. What does =AVERAGEIFS(D2:D8,C2:C8,"HR") return?

17. What does =SUMIFS(D2:D8,E2:E8,">="&DATE(2021,1,1)) return?

18. What does =SUMPRODUCT((C2:C8="Sales")*(D2:D8>45000)) return?

19. Find the bug: =SUMIFS(C2:C8,D2:D8,">40000") returns 0. Why?

Part 4: Text, dates and rounding

20. What does =DATEDIF(E2,DATE(2026,12,31),"y") return?

21. A bonus is 3.3% of salary, rounded up to the next hundred. What does =ROUNDUP(D5*0.033,-2) return?

22. What does =TEXTJOIN(", ",TRUE,FILTER(B2:B8,C2:C8="HR")) return?

23. What does =UPPER(LEFT(B4,3))&"-"&RIGHT(A4,2) return?

24. What does =YEAR(E5) return?

More practice: Pivot table and data test: 23 practice questions for summarising data, and Practical Excel test: 8 interview tasks with model answers for a full case where you choose the formulas yourself.