Forum Discussion
Muhammad Khan
Mar 23, 2017Copper Contributor
Formula or if statement for multiple conditions
Hello All I have a quick question. I want to categorize my data in three categories like Good Average and Bad, the whole sheet consists of different groups. Below is the example of data, the ...
- Mar 23, 2017
Hello Muhammad
Restrcuture your scale tables into one table.
Group - Lower - Category
A - 0 - Bad
A - 12 - Good
A - 16 - Average
A - 21 - Bad
etc.
In my example the new table is in columns I:K.
Then this formula in D2:
=LOOKUP(2,1/($I$2:$I$17=B2)/($J$2:$J$17<=C2),$K$2:$K$17)
Detlef_Lewin
Mar 23, 2017Silver Contributor
Hello Muhammad
Restrcuture your scale tables into one table.
Group - Lower - Category
A - 0 - Bad
A - 12 - Good
A - 16 - Average
A - 21 - Bad
etc.
In my example the new table is in columns I:K.
Then this formula in D2:
=LOOKUP(2,1/($I$2:$I$17=B2)/($J$2:$J$17<=C2),$K$2:$K$17)
- Muhammad KhanMar 23, 2017Copper ContributorHello Detlef Lewin
Thank you very much for your response, my understanding of Excel is very basic level. It will be highly appreciated if you send me the file in which you did the calculation.
Regards
Muhammad Khan- Detlef_LewinMar 23, 2017Silver Contributor
Here it is.
- Muhammad KhanMar 23, 2017Copper Contributor
Thank you very much for helping me out.