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
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

pplstuff

Well-known Member
Joined
Mar 9, 2012
Messages
951
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.
 

davidgarcia100

New Member
Joined
Jul 11, 2012
Messages
2
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!!
 

pplstuff

Well-known Member
Joined
Mar 9, 2012
Messages
951
=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.
 

Trouttrap2

Well-known Member
Joined
May 11, 2010
Messages
612
You might try the lookup function.

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

Watch MrExcel Video

Forum statistics

Threads
1,123,399
Messages
5,601,452
Members
414,450
Latest member
Cassy_sn

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
Top