Multipart IF depending on % in another column and number in this column

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
82
Office Version
  1. 2016
GHIJ
97%7.00
Excel Formula:
=IF(ISBLANK(H:H),"ERROR",IF(H:H>=3.5,"CRITICAL",IF(AND(H:H<=3.49,H:H>=2.5),"MODERATE","ACCEPTABLE")))
HELP??

So, my code for Column I is working as intended, but I need help to add an additional portion to the code for column J.
What i need is the following in code form, because i cant seem to figure out column J.
I tried wrapping in ANDs but i keep erroring out and im sure it's something stupid im missing

if Column G:G >=95% and Column H:H >=3.5 then write "CRITICAL ",
if Column G:G <=95% and Column H:H >=3.5 then write "CRITICAL wAR",
if Column G:G >=95% and Column H:H <=3.49 & >=2.5 then write "MODERATE",
if Column G:G <=95% and Column H:H <=3.49 & >=2.5 then write "MODERATE wAR",
if Column G:G >=95% and Column H:H <2.5 then write "ACCEPTABLE",
if Column G:G <=95% and Column H:H <2.5 then write "ACCEPTABLE wAR",
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Should it be >=95% or <=95%? Only one can be equal, not both. Assuming that it should be >=95% or <95% this should work.
Excel Formula:
=LOOKUP(H2,{0,2.5,3.5},{"CRITICAL","MODERATE","ACCEPTABLE"})&IF(G2<95%," wAR","")
 
Upvote 0
Should it be >=95% or <=95%? Only one can be equal, not both. Assuming that it should be >=95% or <95% this should work.
Excel Formula:
=LOOKUP(H2,{0,2.5,3.5},{"CRITICAL","MODERATE","ACCEPTABLE"})&IF(G2<95%," wAR","")
Oops, yeah sorry it should be

if Column G:G >=95% and Column H:H >=3.5 then write "CRITICAL ",
if Column G:G <95% and Column H:H >=3.5 then write "CRITICAL wAR",
if Column G:G >=95% and Column H:H <=3.49 & >=2.5 then write "MODERATE",
if Column G:G <95% and Column H:H <=3.49 & >=2.5 then write "MODERATE wAR",
if Column G:G >=95% and Column H:H <2.5 then write "ACCEPTABLE",
if Column G:G <95% and Column H:H <2.5 then write "ACCEPTABLE wAR",
 
Upvote 0
In that case, the formula that I suggested should work, although I did miss the part for blanks in your attempted formula, so allowing for that as well:-
Excel Formula:
=IFERROR(LOOKUP(H2,{0,2.5,3.5},{"CRITICAL","MODERATE","ACCEPTABLE"})&IF(G2<95%," wAR",""),"ERROR")
 
Upvote 0
Solution
Should it be >=95% or <=95%? Only one can be equal, not both. Assuming that it should be >=95% or <95% this should work.
Excel Formula:
=LOOKUP(H2,{0,2.5,3.5},{"CRITICAL","MODERATE","ACCEPTABLE"})&IF(G2<95%," wAR","")
I copied the formula and put it in, but my first line is 97% and 7.13 and its showing "Acceptable" which isn't right, i swapped the crit and accept
In that case, the formula that I suggested should work, although I did miss the part for blanks in your attempted formula, so allowing for that as well:-
Excel Formula:
=IFERROR(LOOKUP(H2,{0,2.5,3.5},{"CRITICAL","MODERATE","ACCEPTABLE"})&IF(G2<95%," wAR",""),"ERROR")
That was almost it, i changed it to the following to show an error if its blank, this is awesome thank you soooo much!
Excel Formula:
=IF(ISBLANK(H:H),"ERROR",(LOOKUP(H:H,{0,2.5,3.5},{"ACCEPTABLE","MODERATE","CRITICAL"})&IF(G:G<95%," wAR","")))
 
Upvote 0

Forum statistics

Threads
1,215,707
Messages
6,126,353
Members
449,311
Latest member
accessbob

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