Sample Data
This table lists fruits in column A and their colors in column B. We will use SWITCH to find the color name for the fruit in A2.
| Cell | Value |
|---|---|
| A1 | Fruit |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| B1 | Color |
| B2 | Red |
| B3 | Yellow |
| B4 | Red |
| C1 | Color Result |
This table lists fruits in column A and their colors in column B. We will use SWITCH to find the color name for the fruit in A2.
| Cell | Value |
|---|---|
| A1 | Fruit |
| A2 | Apple |
| A3 | Banana |
| A4 | Cherry |
| B1 | Color |
| B2 | Red |
| B3 | Yellow |
| B4 | Red |
| C1 | Color Result |
=SWITCH(A2, "Apple", "Red", "Banana", "Yellow", "Cherry", "Red", "Unknown")A B C 1 | Fruit | Color | Color Result 2 | Apple | Red | [Formula] 3 | Banana| Yellow| 4 | Cherry| Red |
A B C 1 | Fruit | Color | Color Result 2 | Apple | Red | Red 3 | Banana| Yellow| 4 | Cherry| Red |
SWITCH function do in Google Sheets?SWITCH function in Google Sheets?=SWITCH(A1, "Red", 1, "Blue", 2, "Green", 3, 0)Blue?=SWITCH(B2, "Yes", 10, "No", 0)SWITCH: 90+ = "A", 80-89 = "B", 70-79 = "C", below 70 = "F". Which formula correctly uses SWITCH to do this?Pass the test and this pattern moves unknown