Formula help! 3 logic tests, out come for each

geoff0880

New Member
Joined
Mar 13, 2018
Messages
2
Hey!

I'm coming a bit stuck on a formula that I'm trying to create. What I'm after is quite simple really

For example column A I'll have a number, anything between 1-30 and in column B I want to populate that with "Minor" "Medium" or "Major" depending on the number in column A

So 1 - 10 = Minor, 11 - 20 = Medium, 21 - 30 = Major

I don't suppose someone would know the formula for this would they. :D
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
you could probably use an array lookup
but heres an IF

=IF( AND ( A2 > =1, A2 < = 10) , "Minor" , IF ( AND ( A2 > =11, A2 < = 20), "Medium", IF ( AND ( A2 > =21, A2 < = 30), "Major" , "outside Criteria" )))

It could be simpler but was not sure if the number in A could be below 1 or above 30
 
Upvote 0
may be

=CHOOSE(ROUNDUP(A1/10,0),"Minor","Medium","Major")
 
Upvote 0
A lookup table would be best as it would allow you to easily change the criteria, but here's a single formula that should work:
=LOOKUP(A2,{1,11,21,31},{"Minor","Medium","Major","Outside Criteria"})
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,640
Members
449,242
Latest member
Mari_mariou

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