---
title: "Turn codes into names with SWITCH | PracticeExcel"
description: "Practice SWITCH in a live spreadsheet: turn region codes into region names."
canonical_url: "https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names"
locale: en
meta:
  "og:description": "Practice SWITCH in a live spreadsheet: turn region codes into region names."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Turn%2Bcodes%2Binto%2Bnames%2Bwith%2BSWITCH%2Cdescription_~UHJhY3RpY2UgU1dJVENIIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdHVybiByZWdpb24gY29kZXMgaW50byByZWdpb24gbmFtZXMu%2Ceyebrow_IFS%2Band%2BSWITCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiUmVnaW9uIGNvZGUiLCJSZWdpb24iXX0seyJuIjoyLCJjZWxscyI6WyIxMDQyIiwiUyIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZnMtc3dpdGNoL3N3aXRjaC1jb2Rlcy10by1uYW1lcyI%2Cs_WHUWDU7F634pFaNY.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Turn codes into names with SWITCH | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Turn%2Bcodes%2Binto%2Bnames%2Bwith%2BSWITCH%2Cdescription_~UHJhY3RpY2UgU1dJVENIIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogdHVybiByZWdpb24gY29kZXMgaW50byByZWdpb24gbmFtZXMu%2Ceyebrow_IFS%2Band%2BSWITCH%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIk9yZGVyIiwiUmVnaW9uIGNvZGUiLCJSZWdpb24iXX0seyJuIjoyLCJjZWxscyI6WyIxMDQyIiwiUyIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZnMtc3dpdGNoL3N3aXRjaC1jb2Rlcy10by1uYW1lcyI%2Cs_WHUWDU7F634pFaNY.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **Turn codes into names with SWITCH**

**Premium**

In C2, use SWITCH to turn the code in B2 into a name: "N" is "North", "S" is "South", and any other code is "Other".

C2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Order | Region code | Region |  |  | |
| 2 | 1042 | S |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**Premium lesson**

## **Unlock IFS and SWITCH and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**Conditional formatting****Drop-down lists and data validation**

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/ifs-switch/switch-codes-to-names)

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#webpage","description":"Practice SWITCH in a live spreadsheet: turn region codes into region names.","name":"Turn codes into names with SWITCH","url":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"IFS and SWITCH","item":"https://practiceexcelonline.com/practice/ifs-switch","position":3},{"@type":"ListItem","name":"Turn codes into names with SWITCH","position":4}]},{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"When should I use SWITCH instead of IFS?","acceptedAnswer":{"@type":"Answer","text":"Use SWITCH when you compare one cell with exact values, like codes. Use IFS when the tests are ranges or different conditions."}},{"@id":"https://practiceexcelonline.com/practice/ifs-switch/switch-codes-to-names#/schema/learning-resource/1","@type":"LearningResource","description":"Practice SWITCH in a live spreadsheet: turn region codes into region names.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Turn codes into names with SWITCH","teaches":"IFS and SWITCH"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
