HELP! Apply a table of rules, using IF, AND and Ranges - at a bit of a loss!

wongmaster50

New Member
Joined
Nov 29, 2015
Messages
4
Guys n' Gals,

My Excel is seriously rusty and i'm a little a bit at a loss as to how to deal with the problem below.

I have 2 columns of data as outlined below, which depending on which rules they meet they are categorized as per the table below (see Example data)

There are a set of rules that i've written out (also below), which have to be applied to the values - from a logical POV each value must either be less than 0.7 or equal or greater than AND dependent on the percentage range they fall into they THEN get classified.

Any help would hugely be appreciated,

Many Thanks in advance
Andy


Example Data (i can't get Column R to calculate)

Column PColumn QColumn R
0.8467Normal
0.6581mild
0.7584normal
0.5560moderate
0.6977moderate
0.544severe
0.3529 very severe

<tbody>
</tbody>

Rules
IF AND THEN
Column A Column B Column C
>= 0.70-100Normal
< 0.7≥ 80%Mild
< 0.750–79%Moderate
< 0.730–49%Severe
< 0.7< 30%Very Severe

<colgroup><col style="text-align: center;"><col style="text-align: center;"><col style="text-align: center;"></colgroup><tbody>
</tbody>

https://www.dropbox.com/s/8rgiw5yvpwwzqg4/Screen Shot 2015-11-29 at 12.36.02.png?dl=0
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
=IF(P2>=0.7,"Normal",IF(Q2>=80,"Mild",IF(Q2>=50,"Moderate",IF(Q2>=30,"Severe",IF(Q2<30,"Very Severe")))))
 
Upvote 0
In the green cells the result.


Book1
BCDEFG
39Column PColumn QColumn RVlook up table
400,840,67Normalnormal0,00Very Severe
410,650,81mildMild0,30Severe
420,750,84normalnormal0,50Moderate
430,550,60moderateModerate0,80Mild
440,690,77moderateModerate
450,500,44severeSevere
460,350,29very severeVery Severe
Blad8
Cell Formulas
RangeFormula
E40=IF($B40>=0.7,"normal",VLOOKUP($C40,$F$40:$G$43,2,1))
 
Upvote 0
Guys - thanks for the speedy replies - much appreciated, will give it a whirl now - i'll let you know how i get on!
 
Upvote 0
Thanks - ended up using this one, worked a treat and nice and elegant. i didn't realise nested IDs would work recursively like that - thanks again
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,580
Members
448,972
Latest member
Shantanu2024

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