IF Statements to create 4 different Buckets=Value

davidgarcia100

New Member
Joined
Jul 11, 2012
Messages
2
I have a series of numbers in a column from 1 - infinity that I want to catagorize into Four buckets. I think that you would use the IF statement but I am not sure as it is four different categories.

The Four Categories Are:

0 = Zero
1-10 =Small
11-90 = Medium
91+ = Large

Thank you in advance!!!!!:rolleyes:

David
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I'm not sure what the question is, but if you're just looking for the word you can use if() or vlookup().

=if(__=0,"Zero",if(and(__>=1,___<=10,"Small"),if(and(__>=11,__<=90),"Medium",if(__>=91,"Large","No Bucket"))))

Keep in mind, in your OP you account for .5, 10.5, 90.5.
 
Upvote 0
Basically I want the excel to put a certain value in cell Z9 for each number.

If the number is between 1 and 10 in Z9 I want Z10 to say Small.

I tried your formula when changing the __ to Z9, the Zero Works, however for everything else I get a VALUE error.

Do you know what is wrong?? Thanks in advance!!
 
Upvote 0
=IF(B3=0,"Zero",IF(AND(B3>=1,B3<=10),"Small",IF(AND(B3>=11,B3<=90),"Medium",IF(B3>=91,"Large","No Bucket"))))

Sorry, one of the ")" was off. Try that, and replace b3.
 
Upvote 0
You might try the lookup function.

=LOOKUP(A1,{0,1,11,91},{"Zero","Small","Medium","Large"})
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top