IF / AND argument

smck123

New Member
Joined
Nov 3, 2010
Messages
23
Can anyone tell me what is wrong with the following formula? =IF(AS26<0,"G",IF(AS26>0<>AS26<5,"Y",IF(AS26>6,"R"))). The target cell is AV14. I want the target cell to equal one of three values (G,Y,R) given that the value of AS26 meets the following requirements: If AS26 is <0 = "G", If AS26 is >0 but <5 = "Y" and If AS26 is >6 = "R"... HELP!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If the value of AS26 is BETWEEN 5 and 6 the result will be blank, is that what you want?

Try this instead

=LOOKUP(AS26,{-1E100,0,5,6},{"G","Y","Y","R"})
 
Upvote 0
Special K99 - I'm looking for a "Y" value in that case. This for a variance report. If the variance value is below 0 ("G") if it is between 1 and 5 ("Y") and over 6 ("R")
 
Upvote 0

Forum statistics

Threads
1,225,071
Messages
6,182,685
Members
453,132
Latest member
nsnodgrass73

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