Logical FunctionsAdvanced

SWITCH Function

Use SWITCH function for value matching.

Task:

You are converting day numbers to day names for a scheduling application. Convert day numbers to day names using SWITCH in column B, where 1=Monday, 2=Tuesday, etc.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 2 columns5 cells you fill in
AB
1Day NumberDay Name
21
33
45
57
62
What this exercise teachesMay contain the answer

SWITCH function is ideal for scenarios where you need to match an expression against several exact values and return a corresponding result, often cleaner than multiple IFs for this purpose.