RAG Status help!!

Rich8632

New Member
Joined
Jan 8, 2019
Messages
2
Hi,
Is there a nested if formula that can result in a RAG status for the following Criteria?

R if less than 1.5 or more than 4
A if between 1.5 and 2 or between 3.5 and 4
G if between 2.1 and 3

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the Board!

How about something like (for a value in A1):
Code:
=IF(OR(A1<1.5,A1>4),"R",IF(OR(AND(A1>=1.5,A1<=2),AND(A1>=3.5,A1<=4)),"A",IF(AND(A1>=2.1,A1<=3),"G","None")))
If it falls into one of the gaps that you haven't accounted for (like between 3 and 3.5), it will return "None".
 
Upvote 0
Try
=LOOKUP(A7,{-9E+99,1.5,2.0001,2.1,3.0001,3.5,4.0001,9E+99},{"R","A",33,"G",55,"A","R",88})


The .0001 bits are to account for the equals conditions, use a smaller number if that is to "grainy" for your data.
 
Upvote 0
Welcome to the Board!

How about something like (for a value in A1):
Code:
=IF(OR(A1<1.5,A1>4),"R",IF(OR(AND(A1>=1.5,A1<=2),AND(A1>=3.5,A1<=4)),"A",IF(AND(A1>=2.1,A1<=3),"G","None")))
If it falls into one of the gaps that you haven't accounted for (like between 3 and 3.5), it will return "None".

That's great, I meant to include up to 3.5 in the G status so that should do it!


Thanks for your help
 
Upvote 0
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

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