Sample Data
Sales data by category with categories Medium, High, and Low.
| Cell | Value |
|---|---|
| A1 | Category |
| B1 | Sales |
| A2 | Medium |
| B2 | 300 |
| A3 | High |
| B3 | 500 |
| A4 | Low |
| B4 | 200 |
Sales data by category with categories Medium, High, and Low.
| Cell | Value |
|---|---|
| A1 | Category |
| B1 | Sales |
| A2 | Medium |
| B2 | 300 |
| A3 | High |
| B3 | 500 |
| A4 | Low |
| B4 | 200 |
IF [Category] = 'High' THEN 1 ELSEIF [Category] = 'Medium' THEN 2 ELSE 3 ENDA B 1 Category Sales 2 Medium 300 3 High 500 4 Low 200 [Category] values in column A are referenced in the formula.
A B C 1 Category Sales Rank 2 High 500 1 3 Medium 300 2 4 Low 200 3