Exercises / Logic and decisions · 7 of 9

Turn codes into names with SWITCH

SWITCH(value, match1, result1, match2, result2, …, default) compares one value against a list of exact matches. The last, unpaired argument is the default when nothing matches.

Your taskIn C2, use SWITCH to turn the region code in B2 into its name: "N" is North, "S" is South, "E" is East, "W" is West, anything else is "Unknown". It will be copied down to C8.
Pro

Unlock this exercise and every module after the basics.

Pro opens every exercise in every module, your review schedule, and the final test for the course certificate.

RowABC
1StoreCodeRegion
2Store 01N
3Store 02E
4Store 03S
5Store 04N
6Store 05X
7Store 06W
8Store 07S