Excel Quiz: 30 Questions and Answers (With Why)

By the XLsheetAI Team · Updated November 23, 2026 · 12 min read

Machine translation, opens on Google’s site.
TL;DR

The short answer

The most searched Excel test answers are: text in an IF goes in double quotes, IFS replaces nested IFs, CLEAN removes hidden characters while TRIM removes extra spaces, and =SUM(B2:B6) totals B2 through B6. Below are 30 multiple-choice questions in the style of job and course assessments, grouped from basics up to pivot tables. Each one shows the options, the right answer and the reason it is right, so you can answer the next variation of the question too, not just this one.

Cover the answer line, pick your option, then check. Every answer here is for current Microsoft 365 Excel.

Basics: references, SUM and counting

1. Which formula correctly calculates the total of cells B2 through B6?

Answer: B. The colon builds a range, so B2:B6 means B2, B3, B4, B5 and B6. Option A subtracts B6 from B2, D adds only those two cells, and Excel has no TOTAL function.

2. What must every Excel formula start with?

Answer: A. Without the equals sign Excel stores what you typed as plain text and shows it as written instead of calculating it.

3. What do the dollar signs in =$A$1*B2 do?

Answer: B. $A$1 is an absolute reference. Copy the formula down and B2 becomes B3, B4 and so on, while $A$1 keeps pointing at A1. F4 cycles through the reference types while you edit.

4. Which function counts only the cells that contain numbers?

Answer: B. COUNT counts numbers (dates count, because Excel stores them as numbers). COUNTA counts every non-empty cell, text included, and COUNTBLANK counts empty ones.

5. What does =2+3*4 return?

Answer: B. Excel multiplies before it adds, so 3*4 is 12, then 2 is added. Write =(2+3)*4 if you want 20.

6. A1:A4 holds 10, an empty cell, 20 and 0. What does =AVERAGE(A1:A4) return?

Answer: B. AVERAGE skips empty cells but counts zeros, so it divides 30 by 3, not by 4. This is why a blank and a typed 0 can give different averages. More on this in SUM vs COUNT vs AVERAGE.

IF formulas and logic

7. When using text results in an IF formula (for example "Pass" or "Fail"), how must the text be written?

Answer: B. =IF(B2>=50,"Pass","Fail") works. Without quotes Excel treats Pass as a named range and returns #NAME?, and single quotes are not text markers inside formulas. Numbers and TRUE/FALSE need no quotes.

8. Which function is a simpler and more modern alternative to multiple nested IF formulas?

Answer: B. IFS takes condition and result pairs and returns the result for the first TRUE condition, so =IFS(B2>=90,"A",B2>=80,"B",B2>=70,"C",TRUE,"F") replaces three nested IFs. If you are matching one value against exact options, such as a region code, SWITCH is the other modern answer.

Nested IF IFS =IF(B2>=90,"A", IF(B2>=80,"B", IF(B2>=70,"C", "F"))) three closing brackets to keep track of =IFS(B2>=90,"A", B2>=80,"B", B2>=70,"C", TRUE,"F") one function, read top to bottom TRUE as the last condition is the "everything else" result
The same grading rule as a nested IF and as one IFS. Text results are in double quotes in both.

9. Which function returns TRUE only when every condition is true?

Answer: C. =AND(B2>=50,C2="Yes") is TRUE only if both parts are. OR needs just one to be true. Inside an IF it looks like =IF(AND(B2>=50,C2="Yes"),"Pass","Fail").

10. A2 is exactly 50. What does =IF(A2>=50,"Pass","Fail") return?

Answer: A. >= means "greater than or equal to", so 50 passes. With > alone, 50 would fail. Quizzes love this boundary case.

11. Your IFS formula returns #N/A for some rows. What is the most likely cause?

Answer: B. Unlike IF, IFS has no built-in "else" and returns #N/A when nothing matches. Add TRUE,"Other" as the last pair to catch every remaining row.

12. In an Excel table, =IFS([@Sales]*1.1>1000,"High",TRUE,"Low") returns #VALUE! on a few rows. Why?

Answer: B. Multiplying text that isn't a number gives #VALUE!, and the error passes straight through IFS. Clean the column, or test it first with ISNUMBER([@Sales]) as the first condition.

13. What does IFERROR do?

Answer: B. =IFERROR(A2/B2,0) shows 0 instead of #DIV/0!. It hides every error type, real mistakes included, so use it on purpose, not by habit. More patterns in Excel IF formula examples.

Lookups: VLOOKUP, XLOOKUP and friends

14. In =VLOOKUP(E2,A2:C100,3,FALSE), what does FALSE mean?

Answer: B. FALSE (or 0) asks for an exact match. Leave it out and VLOOKUP defaults to an approximate match, which needs sorted data and can quietly return the wrong row.

15. VLOOKUP can't return a value from a column to the left of the lookup column. Which function can?

Answer: B. XLOOKUP takes a separate lookup range and return range, so the return column can sit anywhere. INDEX with MATCH also works. See XLOOKUP vs VLOOKUP for the full comparison.

16. What match type does XLOOKUP use if you don't set one?

Answer: B. XLOOKUP defaults to exact match, the opposite of VLOOKUP. That alone removes one of the most common lookup mistakes.

17. A lookup formula returns #N/A. What does it usually mean?

Answer: B. #N/A means "no match". The usual causes are a trailing space, a number stored as text on one side, or a value that really isn't there. A typo in the function name gives #NAME? instead.

18. Which formula returns the price from C2:C100 where column A matches F1 and column B matches G1?

Answer: B. Each comparison gives a list of TRUE and FALSE, multiplying them gives 1 only where both match, and XLOOKUP finds that 1. Option A would only work with a helper column of joined keys. More ways in lookup with multiple criteria.

Text cleanup: CLEAN, TRIM and friends

19. Which of the following Excel formulas removes hidden characters you can't see?

Answer: B. CLEAN removes non-printing characters, the codes 0 to 31 such as line breaks and tabs that come in with pasted or exported data. TRIM handles spaces, not these. For both jobs at once, use =TRIM(CLEAN(A2)), and see removing hidden characters in Excel for the ones neither function catches.

20. A2 contains "  John   Smith  ". What does =TRIM(A2) return?

Answer: B. TRIM removes leading and trailing spaces and squeezes repeated spaces between words down to one. One catch: it only removes the normal space. Web data often has the non-breaking space (character 160), which needs =SUBSTITUTE(A2,CHAR(160)," ") first.

21. Which formula joins a first name in A2 and a last name in B2 with a space between them?

Answer: B. The ampersand joins text, and the space has to be added as its own piece in double quotes. D works but runs the names together, and + is for numbers, so A gives #VALUE!.

22. Numbers imported as text won't add up. Which function turns "125" into the number 125?

Answer: B. VALUE converts text that looks like a number into a real number. TEXT goes the other way, turning a number into formatted text.

Dates

23. Which function returns the current date and time?

Answer: B. NOW returns date and time, TODAY returns the date only. Both update every time the sheet recalculates, so they are not a fixed timestamp.

24. A2 holds a start date and B2 an end date. Which formula gives the number of days between them?

Answer: B. Dates are numbers, so end minus start gives the days. A and C both give a negative result, because DAYS takes the end date first: =DAYS(B2,A2). If the answer shows as a date, change the cell format to General.

25. Which formula returns the last day of the month for the date in A2?

Answer: A. EOMONTH means "end of month", and 0 means this month (1 would be next month). EDATE moves the same day forward a month, and MONTH and DAY just pull out a number.

26. Which function counts working days between two dates, skipping Saturdays and Sundays?

Answer: B. NETWORKDAYS counts Monday to Friday, including both the start and end date, and takes an optional list of holidays to skip. NETWORKDAYS.INTL lets you pick different weekend days.

Pivot tables and data tools

27. You add a number column to the Values area of a pivot table. What summary does Excel use by default?

Answer: B. A fully numeric field is summed. A single blank or text cell in the source column switches the default to Count, which is why a "total" can suddenly show a row count. Change it under Value Field Settings.

28. You added new rows to the source data but the pivot table hasn't changed. What do you do?

Answer: B. Pivot tables don't update on their own. Refresh pulls in changes, but rows below a fixed source range still get missed, which is why it helps to build the pivot from an Excel table.

29. What does pressing Ctrl+T on a range of data do?

Answer: B. A table grows automatically when you add rows, copies formulas down by itself, and lets formulas use column names like [@Sales] instead of cell addresses.

30. Which function returns a list of distinct values from A2:A100 that updates when the data changes?

Answer: B. =UNIQUE(A2:A100) spills the distinct values into the cells below and recalculates when the source changes. The Remove Duplicates button does a one-time cleanup and deletes rows instead.

How to use these questions

Most Excel assessments for jobs and courses reuse the same handful of ideas: quotes around text, absolute references, exact-match lookups, the order of operations, and the difference between functions with similar names like COUNT and COUNTA or TRIM and CLEAN. If you missed a question, the "why" line is the part to remember, because the next test will word it differently.

Reading answers only gets you part of the way. Typing the formula into a grid and seeing it work, or break, is what makes it stick. If you're preparing for a job test in particular, pair this with our Excel interview questions, which cover the questions asked out loud rather than on a form.

Practise these on a real grid

XLsheetAI has free practice on a live grid: type the formula, see the result, and get a plain explanation when it goes wrong. In the app you can also describe what you need in plain English and get the formula written for you.

Download on the App StoreGet it on Google Play

Want the formulas from this quiz on one page? Keep the Excel formulas cheat sheet open next to your test prep, and read Excel IF formula examples if the logic section tripped you up.

FAQ

When using text results in an IF formula, how must the text be written?

In double quotes, for example =IF(B2>=50,"Pass","Fail"). Without quotes Excel reads Pass as a name and returns #NAME?, and single quotes are not accepted as text markers in formulas.

Which function is a simpler and more modern alternative to multiple nested IF formulas?

IFS. It takes condition and result pairs in order and returns the result for the first condition that is TRUE, so there is no stack of closing brackets. When you are matching one value against a list of exact options, SWITCH is the other modern choice.

Which Excel formula removes hidden characters you can't see?

CLEAN. It strips the non-printing characters with codes 0 to 31, such as line breaks and tabs pasted in from other systems. TRIM is the one that removes extra spaces. Neither removes the non-breaking space (character 160), which needs SUBSTITUTE(A2,CHAR(160)," ").

Which formula correctly calculates the total of cells B2 through B6?

=SUM(B2:B6). The colon means the whole range from B2 to B6. =SUM(B2-B6) subtracts B6 from B2, and =SUM(B2,B6) adds only those two cells.

Why does arithmetic inside an IFS formula in an Excel table return an error?

Usually one of two things. #VALUE! means a cell in the column holds text such as N/A or a dash, and Excel cannot multiply or add text. #N/A means none of the IFS conditions were TRUE, so add TRUE as the last condition with a default result.