sirmixalot
New Member
- Joined
- Jan 15, 2016
- Messages
- 7
Hi guys,
As part of my world domination scheme, I am trying to figure out how to return a value from the first table rendering below (row values) based on the column headers in the same table. I use the Loc1/Loc2/Loc3 values in column 1 of table 2 to return a "yes" or "no" from table 1.
I tried @XLookup and I feel like that returns the right answer but for some reason, it does not fit well within an "IF" statement and always gives me false even though I mark it as "If(@XLOOKUP(formula here with exact match))="Yes",1,2) - it always returns 2
As part of my world domination scheme, I am trying to figure out how to return a value from the first table rendering below (row values) based on the column headers in the same table. I use the Loc1/Loc2/Loc3 values in column 1 of table 2 to return a "yes" or "no" from table 1.
I tried @XLookup and I feel like that returns the right answer but for some reason, it does not fit well within an "IF" statement and always gives me false even though I mark it as "If(@XLOOKUP(formula here with exact match))="Yes",1,2) - it always returns 2
Loc1 | Loc2 | Loc3 | Loc4 | Loc5 |
Yes | Yes | Yes | Yes | No |
Yes | Yes | Yes | No | No |
Yes | Yes | Yes | No | No |
Yes | Yes | Yes | Yes | No |
Yes | Yes | Yes | Yes | No |
Yes | Yes | Yes | Yes | No |
Yes | Yes | Yes | Yes | Yes |
Yes | Yes | Yes | Yes | Yes |
Yes | Yes | Yes | Yes | Yes |
location | plan | plan[id] | |
Loc1 | bm | LOc1-bm | |
Loc2 | bm | Loc2-bm | |
Loc3 | bm | Loc3-bm | |
Loc4 | bm | Loc4-bm | |
Loc5 | bm | Loc5-bm | |