• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Multiple conditions IF

David Lam

New Member
Hello,

Need some help with figuring out this task given to me. So the description is, if a customer under column A has any value below than the following answer is given:

- Column C contain any number equal to or below 7 than "LOW" is given
- Column C contain any number equal to and between 8 and 30 than "MED" is given
- Column C contain any number above or equal to 31 "HIGH" is given

Of course in an event where multiple conditions are met for column C than HIGH get's first priority than MED then LOW. E.g. customer has 7, 15 and 32 in column C than HIGH is given.

NGsdrff.png


Very tricky and I have been trying different ways with IF with failure. Is there any other way?

David
 

Attachments

Nice way of doing it on the raw data but the second condition would make them all HIGH.

"Of course in an event where multiple conditions are met for column C than HIGH get's first priority than MED then LOW. E.g. customer has 7, 15 and 32 in column C than HIGH is given."

If OCEANA APARTMENTS LTD was to be consolidated into 1 row than it would be HIGH. If that makes sense?
 

Attachments

Try……

1] Set up a Range Table together with expected grading as in D1:F4

2] Output "name of St" H2, formula copy down :

=IFERROR(INDEX(A$2:A$17,MATCH(0,INDEX(COUNTIF(H$1:H1,A$2:A$17),0),0)),"")

3] Output "Grade" I2, formula copy down :

=IF(H2="","",LOOKUP(INDEX(MAX((A$2:A$17=H2)*B$2:B$17),0),D$2:D$4,F$2:F$4))

Regards
Bosco
 

Attachments

Back
Top