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 |