Excel Quiz: 30 Questions and Answers (With Why)
- Text results in an IF formula must be written in double quotes:
=IF(B2>=50,"Pass","Fail"). - The simpler, modern alternative to nested IF formulas is IFS. SWITCH is the other option when you match one value against a fixed list.
- CLEAN removes hidden non-printing characters you can't see. TRIM removes extra spaces. Neither removes the non-breaking space, character 160.
- The formula that totals cells B2 through B6 is
=SUM(B2:B6). The colon means "everything from B2 to B6". - An IFS formula that returns #N/A found no TRUE condition. One that returns #VALUE! hit text where it expected a number.
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?
- A.
=SUM(B2-B6) - B.
=SUM(B2:B6) - C.
=TOTAL(B2:B6) - D.
=SUM(B2,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?
- A. An equals sign (=)
- B. The @ sign
- C. A hash sign (#)
- D. Brackets
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?
- A. Format the result as currency
- B. Lock A1 so it does not change when the formula is copied
- C. Round A1 to two decimals
- D. Make A1 read-only
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?
- A. COUNTA
- B. COUNT
- C. COUNTBLANK
- D. SUM
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?
- A. 20
- B. 14
- C. 24
- D. 9
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?
- A. 7.5
- B. 10
- C. 15
- D. #DIV/0!
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?
- A. In brackets
- B. In double quotes
- C. In single quotes
- D. Without any marks
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?
- A. IFERROR
- B. IFS
- C. IFNA
- D. HLOOKUP
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.
9. Which function returns TRUE only when every condition is true?
- A. OR
- B. NOT
- C. AND
- D. XOR
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?
- A. Pass
- B. Fail
- C. TRUE
- D. #VALUE!
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?
- A. IFS only works in tables
- B. None of the conditions were TRUE for those rows
- C. The results are in double quotes
- D. IFS needs exactly three conditions
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?
- A. Structured references can't be used in IFS
- B. Those rows have text such as "N/A" or "-" in the Sales column
- C. Tables don't allow arithmetic
- D. The 1.1 needs to be in quotes
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?
- A. Fixes the error in the formula
- B. Returns a value you choose when the formula results in an error
- C. Highlights cells with errors
- D. Deletes rows with errors
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?
- A. Return FALSE if nothing is found
- B. Find an exact match only
- C. Search from the bottom up
- D. Ignore upper and lower case
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?
- A. HLOOKUP
- B. XLOOKUP
- C. COUNTIF
- D. VLOOKUP with a negative column number
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?
- A. Approximate match
- B. Exact match
- C. Wildcard match
- D. Next larger value
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?
- A. The formula has a typo in the function name
- B. The value you looked for was not found
- C. You divided by zero
- D. The column is too narrow
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?
- A.
=VLOOKUP(F1&G1,A2:C100,3,FALSE) - B.
=XLOOKUP(1,(A2:A100=F1)*(B2:B100=G1),C2:C100) - C.
=XLOOKUP(F1,G1,C2:C100) - D.
=MATCH(F1,G1,0)
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?
- A.
=TRIM(A2) - B.
=CLEAN(A2) - C.
=PROPER(A2) - D.
=UPPER(A2)
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?
- A. "JohnSmith"
- B. "John Smith"
- C. "John Smith"
- D. " John Smith "
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?
- A.
=A2+B2 - B.
=A2&" "&B2 - C.
=SUM(A2," ",B2) - D.
=A2&B2
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?
- A. TEXT
- B. VALUE
- C. LEN
- D. CLEAN
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?
- A. TODAY
- B. NOW
- C. DATE
- D. 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?
- A.
=A2-B2 - B.
=B2-A2 - C.
=DAYS(A2,B2) - D.
=DATE(B2-A2)
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?
- A.
=EOMONTH(A2,0) - B.
=MONTH(A2) - C.
=EDATE(A2,1) - D.
=DAY(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?
- A. DAYS
- B. NETWORKDAYS
- C. WEEKDAY
- D. DATEDIF
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?
- A. Average
- B. Sum, unless the column has blanks or text, then Count
- C. Count, always
- D. Max
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?
- A. Rebuild the pivot table
- B. Refresh it, and check the source range includes the new rows
- C. Save and reopen the file
- D. Press Ctrl+Z
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?
- A. Opens a new tab
- B. Turns the range into an Excel table
- C. Transposes the data
- D. Adds a total row to the sheet
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?
- A. COUNTIF
- B. UNIQUE
- C. SORT
- D. FILTER
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.
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.
