How to assign a value or category based on a number range in Excel?
his article is talking about assigning value or category related to a specified range in Excel. For example, if the given number is between 0 and 100, then assign value 5, if between 101 and 500, assign 10, and for range 501 to 1000, assign 15. Method in this article can help you get through it.
2. Keep selecting the result cell, drag the Fill Handle down to get all values of given numbers based on ranges. See screenshot:
Tips: The following formula can help to assign specific category based on cell values:
1. Create a table with all number ranges and assigned categories listed inside as below screenshot shown.
2. Select a blank cell adjacent to the given number, enter formula into the Formula Bar, and then press the Enter key. See screenshot:
Note: In the formula, A13 is the cell contains the given number you will assign category based on, $A$2:$C$4 is the table range you created in step 1, and number 3 is the column number with the assigned value in the table.
3. Then drag the Fill Handle down to get all results.
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.