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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,215,143
Messages
6,123,276
Members
449,093
Latest member
Vincent Khandagale

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