Skip to content

All-Access: every lesson, no ads. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month, billed yearly. Free to start. Cancel any time

See plans
All-Access, no ads: every lesson, course and template. $8.25€8.25US$8.25$4.08US$4.08$2.41US$2.41₹224.91MX$74.91 a month. + GST at checkoutSee the plans →

Logical Functionslesson 65 of 95

SWITCH Function

0daysLet's get rolling!

Loading the data...

0streak
0 XP today
All Lessons

SWITCH Function - Excel Practice Online

This interactive exercise teaches you SWITCH Function in Excel through 10 hands-on steps. Instead of watching a video, you type the real formula into a live spreadsheet grid and get instant feedback on every answer. It is part of the Logical Functions track and works right in your browser - no Excel install and no download. Start free.

Practising SWITCH Function this way builds the muscle memory that transfers straight to using Excel at work, in interviews, or for certification prep. Work through the steps above, then keep going with the next lesson to build a complete Excel practice course.

What you'll practice in this SWITCH Function lesson

  1. The SWITCH function in Excel compares a value to a list of possible match/result pairs and returns the result of the appropriate match. Say you wanted each number spelled out rather than in numerical form. Reference the value in cell A1, and return the matching result of "One" when it is 1.
  2. Now let's add another match/result pair to our SWITCH so the formula can handle more numbers. It should return "One" if the value in A1 is 1, and "Two" if the value is 2.
  3. What would the result of the following formula be? =SWITCH(A1, 1, "One", 2, "Two", 3, "Three")
  4. What would the result of the following formula be? =SWITCH(A3, 1, "One", 2, "Two", 3, "Three")
  5. The SWITCH function also allows an optional default value at the end. The function will return the default value if none of our values match the value in the cell we're referencing. Write the formula for 1, 2 and 3 (One, Two, Three) that returns "Unknown" if the value in A1 doesn't match any of our conditions.
  6. What would this formula return? =SWITCH(A5, 1, "One", 2, "Two", 3, "Three", "Unknown")
  7. What would this formula return? =SWITCH(A6, 1, "One", 2, "Two", 3, "Three", "Unknown")
  8. What would this formula return? =SWITCH(A2, 1, "One", 2, "Two", 3, "Three", "Unknown")
  9. What would this formula return? =SWITCH(B2, "A", "Great", "B", "Okay", "Bad")
  10. What would this formula return? =SWITCH(B5, "A", "Great", "B", "Okay", "Bad")

SWITCH Function practice - FAQ

How do I practice SWITCH Function in Excel?

Open this LogicExcel exercise and work through 10 interactive steps. You type the real formula into a live spreadsheet grid and get instant feedback on whether it is correct, plus an explanation. You need no Excel install.

Is the SWITCH Function exercise free?

Your first two lessons are free with a free account. After that the pass opens all 95 lessons, the Academy and the accounting course. Lessons you finish stay open.

What will I learn in this SWITCH Function lesson?

This lesson covers SWITCH Function as part of the Logical Functions track. You practice the syntax step by step until it becomes muscle memory you can use at work.