Sheetsdrill

Level 2: Conditional counting and summing Exercise 19 of 50 Pro

Region names with SWITCH

A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.

The task

Turn the one-letter code into a region name: N is North, S is South, E is East, W is West. Any other code shows "Unknown". Fill C2 and C3 using SWITCH.

What this exercise teaches

Without the default, an unexpected code returns #N/A. A default keeps the sheet readable.

A hint if you get stuck

SWITCH(value, case1, result1, case2, result2, ..., default). The default is a lone last argument.

Functions used: SWITCH

This exercise is part of Pro

Pro unlocks all 50 exercises, with worked solutions and progress saved to your account. The free exercises work without an account.

You create a free account first, so Pro is attached to it.

Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.

Start with the free exercises

More exercises in Conditional counting and summing