Forum Discussion
Help with IF this but IF that...
- Feb 10, 2020
Tim, with this it's better not to hardcode all combinations, but create helper range somewhere, even on another sheet (you could hide it) like this
and give names to all 3 columns of this range. Here are ParName, ParMin and ParMax. Formula in E2 will be
=IFNA(
IF(D2>INDEX(ParMax, MATCH(C2,ParName,0)),
"High",
IF(D2>INDEX(ParMin,MATCH(C2,ParName,0)),
"Yes","Low")
),
"No")
and drag it down.
SergeiBaklan Many, many thanks for your continued support - I'm learning a great deal.
I can't quite get the last (and most ideal solution) to work.
Here is what I have set up:
| Target Art AWOL | Art FFT (Y7) | MATCH? | Par | Min | Max | |
| I | 5.5 | #NAME? | A | 7 | 10 | |
| A | 7.2 | YES | I | 4 | 7 | |
| I | 4.8 | YES | F | 0 | 4 |
If I select the three descending cells in the far right columns I get the right title (e.g. I select A I F and get ParName).
The function I have put in the cell which results in #NAME? is =IFNA(IF(D2>INDEX(ParMax,MATCH(C2,ParName,0)),"High",IF(D2>INDEX(ParMin,MATCH(C2,ParName,0)),"Yes","Low")),"No")
Can you see something obvious I might have missed? This will honestly be so useful for me in my professional role.
Thanks,
Tim
- SergeiBaklanFeb 11, 2020Diamond Contributor
Most probably you didn't define named ranges
Select G2:G4 and enter the name as above.
You may add/edit/delete the in Name Manager as well
- Teden2020Feb 11, 2020Copper Contributor
SergeiBaklan Ah - I kind of did but I missed ParMin - not sure how. It now all works perfectly. This is so useful to me and my workplace. Thanks so much. I'll leave you in peace now!
Tim
- SergeiBaklanFeb 11, 2020Diamond Contributor
Tim, glad to help