Challenge - 5 Problems
SWITCH Function Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate1:30remaining
Output of SWITCH with numeric match
What is the result of this formula in Excel?
=SWITCH(3, 1, "One", 2, "Two", 3, "Three", "Other")Excel
=SWITCH(3, 1, "One", 2, "Two", 3, "Three", "Other")
Attempts:
2 left
💡 Hint
Look for the value that matches the first argument exactly.
✗ Incorrect
The SWITCH function compares the first argument (3) to each value (1, 2, 3). When it finds 3, it returns the corresponding result "Three".
❓ Function Choice
intermediate2:00remaining
Choose the correct SWITCH formula for grading
You want to assign letter grades based on numeric scores:
- 90: "A"
- 80: "B"
- 70: "C"
- Otherwise: "F"
Which formula correctly uses SWITCH to do this for a score in cell A1?
- 90: "A"
- 80: "B"
- 70: "C"
- Otherwise: "F"
Which formula correctly uses SWITCH to do this for a score in cell A1?
Attempts:
2 left
💡 Hint
SWITCH compares the first argument to each value exactly.
✗ Incorrect
Option A correctly uses SWITCH with TRUE as the first argument and logical tests as values, returning the correct grade. Option A only matches exact scores, not ranges. Option A has wrong argument order. Option A mixes values and results incorrectly.
🎯 Scenario
advanced2:30remaining
Using SWITCH to categorize weekdays
You have a cell B2 containing a weekday name (e.g., "Monday", "Tuesday", etc.).
Which formula using SWITCH will return "Weekday" for Monday to Friday, and "Weekend" for Saturday and Sunday?
Which formula using SWITCH will return "Weekday" for Monday to Friday, and "Weekend" for Saturday and Sunday?
Attempts:
2 left
💡 Hint
Include all days and a default value for unknown days.
✗ Incorrect
Option C covers all days with correct results and a default "Unknown" for any other input. Option C wrongly labels weekend days as "Weekday" and default is "Weekend" which is incorrect. Option C has correct mapping but order is different; still works but default missing. Option C misses weekend days and default.
📊 Formula Result
advanced1:30remaining
Result of SWITCH with missing match and no default
What is the result of this formula?
=SWITCH("Blue", "Red", 1, "Green", 2, "Yellow", 3)Excel
=SWITCH("Blue", "Red", 1, "Green", 2, "Yellow", 3)
Attempts:
2 left
💡 Hint
What happens if no match is found and no default is given?
✗ Incorrect
When SWITCH does not find a match and no default value is provided, it returns the #N/A error.
❓ data_analysis
expert3:00remaining
Count how many cells return "Pass" using SWITCH
You have a list of scores in cells A1:A6:
85, 92, 70, 60, 88, 75
You use this formula in B1 and copy down to B6:
How many cells in B1:B6 will show "Pass"?
85, 92, 70, 60, 88, 75
You use this formula in B1 and copy down to B6:
=SWITCH(TRUE, A1>=90, "Pass", A1>=70, "Pass", "Fail")How many cells in B1:B6 will show "Pass"?
Excel
=SWITCH(TRUE, A1>=90, "Pass", A1>=70, "Pass", "Fail")
Attempts:
2 left
💡 Hint
Check each score against the conditions in order.
✗ Incorrect
Scores 92, 85, 70, 88, and 75 meet >=70 condition and get "Pass". Only 60 is "Fail". So 5 cells show "Pass".