FormulaCraft

How to categorize values into buckets in Excel and Google Sheets

Topic:IF, IFS & nested conditions
Excel & Google Sheets
=IF(B2<50,"Low",IF(B2<100,"Medium","High"))

Verified example

Computed by a real spreadsheet engine on the sample data below.

ItemValueBucket
A30
B75
C110
D48
E200

=IF(B2<50,"Low",IF(B2<100,"Medium","High"))Low

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Decide on your bucket thresholds (e.g., <50 = Low, 50–99 = Medium, 100+ = High).
  2. 2In a category column type =IF(B2<50,"Low",IF(B2<100,"Medium","High")) and adjust thresholds to match your data.
  3. 3Copy down all rows. For many buckets, build a small lookup table and use VLOOKUP with approximate match instead to keep the formula short.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if some values are negative and some positive?

Just add a condition at the start: =IF(B2<0,"Negative",IF(B2<50,"Low",IF(B2<100,"Medium","High"))).

Can I bucket text values instead of numbers?

Yes — use IFS or nested IF with exact text comparisons or a VLOOKUP with exact match (FALSE).

More on IF, IFS & nested conditions

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: