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

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

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

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

Last reviewed: