## How to categorize data based on values in Excel?

Supposing, you need to categorize a list of data based on values, such as, if data is greater than 90, it will be categorized as High, if is greater than 60 and less than 90, it will be categorized as Medium, if is less than 60, categorized as Low as following screenshot shown. How could you solve this task in Excel?

Categorize data based on values with If function

Categorize data based on values with Vlookup function

#### Categorize data based on values with If function

To apply the following formula to categorize the data by value as you need, please do as this:

Enter this formula: =IF(A2>90,"High",IF(A2>60,"Medium","Low")) into a blank cell where you want to output the result, and then drag the fill handle down to the cells to fill the formula, and the data has been categorized as following screenshot shown:

#### Categorize data based on values with Vlookup function

If there are multiple grades need to be categorized as below screenshot shown, the If function may be troublesome and difficult to use. In this case, the Vlookup function can do you a favor. Please do as follows:

Enter this formula: =VLOOKUP(A2,\$F\$1:\$G\$6,2,1) into a blank cell, and then drag the fill handle down to the cells you need to get the result, and all data has been categorized at once, see screenshot:

Note: In the above formula, B2 is the cell that you want to get the categorized grade, F1:G6 is the table range you want to look for, the number 2 indicates the lookup table column number which contains the values you want to return.

### Unlock Excel Magic with Kutools AI

• Smart Execution: Perform cell operations, analyze data, and create charts—all driven by simple commands.
• Custom Formulas: Generate tailored formulas to streamline your workflows.
• VBA Coding: Write and implement VBA code effortlessly.
• Formula Interpretation: Understand complex formulas with ease.