0
0
Excelspreadsheet~20 mins

SWITCH function in Excel - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
SWITCH Function Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
1: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")
A"Three"
B"Two"
C"Other"
D3
Attempts:
2 left
💡 Hint
Look for the value that matches the first argument exactly.
Function Choice
intermediate
2: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?
A=SWITCH(TRUE, A1>=90, "A", A1>=80, "B", A1>=70, "C", "F")
B=SWITCH(A1, "A", 90, "B", 80, "C", 70, "F")
C=SWITCH(A1, 90, "A", 80, "B", 70, "C", "F")
D=SWITCH(A1>=90, "A", A1>=80, "B", A1>=70, "C", "F")
Attempts:
2 left
💡 Hint
SWITCH compares the first argument to each value exactly.
🎯 Scenario
advanced
2: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?
A=SWITCH(B2, "Monday", "Weekday", "Tuesday", "Weekday", "Wednesday", "Weekday", "Thursday", "Weekday", "Friday", "Weekday", "Saturday", "Weekday", "Sunday", "Weekday", "Weekend")
B=SWITCH(B2, "Saturday", "Weekend", "Sunday", "Weekend", "Monday", "Weekday", "Tuesday", "Weekday", "Wednesday", "Weekday", "Thursday", "Weekday", "Friday", "Weekday")
C=SWITCH(B2, "Monday", "Weekday", "Tuesday", "Weekday", "Wednesday", "Weekday", "Thursday", "Weekday", "Friday", "Weekday", "Saturday", "Weekend", "Sunday", "Weekend", "Unknown")
D=SWITCH(B2, "Monday", "Weekday", "Tuesday", "Weekday", "Wednesday", "Weekday", "Thursday", "Weekday", "Friday", "Weekday")
Attempts:
2 left
💡 Hint
Include all days and a default value for unknown days.
📊 Formula Result
advanced
1: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)
A3
B#N/A
C0
D"Blue"
Attempts:
2 left
💡 Hint
What happens if no match is found and no default is given?
data_analysis
expert
3: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:
=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")
A4
B3
C6
D5
Attempts:
2 left
💡 Hint
Check each score against the conditions in order.