Skip to main content
Course

SWITCH and XOR practice exercises

Five exercises, from your first SWITCH to XOR as the test of IF. Each answer is checked instantly, with a hint and the explanation if you get stuck.

Read the SWITCH and XOR tutorial

Exercise 1 of 5

Turn priority codes into labels

The help desk stores priorities as codes. In C2:C6, use SWITCH to show High for 1, Medium for 2 and Low for 3, based on the code in column B.

TicketPriority codePriority
T-3012
T-3021
T-3033
T-3041
T-3052