Formula for value bands

PhilipeC

Board Regular
Joined
May 1, 2018
Messages
56
[h=2]Calculate a cell with set of rules[/h]
I want a formula to calculate K8 with these set of rules:


If C8 is 0 to 25 than K8 = "Very small"
If C8 is 26 to 35 than K8 = "Small"
If C8 is 36 to 45 than K8 = "Large"
If C8 is greater than 45 than K8 = "Very Large"​
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Re: I want a formula to calculate K8 with these set of rules: If C8 is 0 to 25 than K8 = "Very small" If C8 is 26 to 35 than K8 = "Small" If C8 is 36 to 45 than K8 = "Large" If C8 is greater than 45 than K8 = "Ver

Try the LOOKUP function syntax#1
 
Upvote 0
Re: I want a formula to calculate K8 with these set of rules: If C8 is 0 to 25 than K8 = "Very small" If C8 is 26 to 35 than K8 = "Small" If C8 is 36 to 45 than K8 = "Large" If C8 is greater than 45 than K8 = "Ver

Try this;

Code:
=IF(AND(C8>=0,C8<=25),"Very Small",IF(AND(C8>=26,C8<=35),"Small",IF(AND(C8>=36,C8<=45),"Large",IF(C8>=46,"Very Large",""))))
 
Last edited:
Upvote 0
Re: I want a formula to calculate K8 with these set of rules: If C8 is 0 to 25 than K8 = "Very small" If C8 is 26 to 35 than K8 = "Small" If C8 is 36 to 45 than K8 = "Large" If C8 is greater than 45 than K8 = "Ver

the lookup() alternative

=LOOKUP(C8,{0,26,36,46},{"Very Small","Small","Large","Very Large"})
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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