Formulas > =SWITCH()
How To Use SWITCH() Function in Google Sheets
Description
How To Actually Use SWITCH() in Sheets
SWITCH(expression, case1, value1, [default or case2, value2], …)
Try SWITCH yourself
In cells A1:A10, you have scores ranging from 1 to 5. Use the SWITCH formula in cell B1 to categorize these scores as 'Poor', 'Average', 'Good', 'Very Good', or 'Excellent'.
Hints (3)
-
Think about how to match each score to its category.
-
Remember to include a default value in case the score is not between 1 and 5.
-
You can drag the formula down from B1 to fill B2:B10.
7 Better Sheets Tutorials
Build a Domain Grader
Switch Data
Ken Asks: Can We Add Star Ratings?
5 Ways to use IF() Formula to Create Magic in Your Sheets
Building a Year Progress Clone
That Viral Growing Plant Progress Chart
Create a ChatGPT Cheat Sheet Spreadsheet
Watch the Upgrade to GPT-4 video to see the differences between GPT-3 and GPT-4 Apps Script
Learn more about the SWITCH() formula:
Generate a SWITCH() formula for your needs
Describe your task in plain English and get a paste-ready formula that uses SWITCH(). 2 free AI generations, no signup. Members get unlimited use.
Generate a SWITCH() formula