Dear Excelisseurs,
I'm somewhat of an excel rookie so bear with me, I'm running flat with this one so I figured it's best to ask you.
Basically I want to return a value in column 2, but where the value in column 1 is equal to what I ask for.
For example in the table below, I want to be able to return "2" from table[Ingredients] where the value in table[Dish] is equal to "A" - which is easy with XLOOKUP. However I also want to be able to return "2" from table[Ingredients] where the value in table[Dish] is "B" or "C" or "D", you get my point. There might be 100s of dishes with the same ingredient, but I need to return the unique combination I ask for.
Thank you Kindly!
I'm somewhat of an excel rookie so bear with me, I'm running flat with this one so I figured it's best to ask you.
Basically I want to return a value in column 2, but where the value in column 1 is equal to what I ask for.
For example in the table below, I want to be able to return "2" from table[Ingredients] where the value in table[Dish] is equal to "A" - which is easy with XLOOKUP. However I also want to be able to return "2" from table[Ingredients] where the value in table[Dish] is "B" or "C" or "D", you get my point. There might be 100s of dishes with the same ingredient, but I need to return the unique combination I ask for.
Dish | Ingredients | Qty | Unit |
A | 1 | 5 | ml |
A | 2 | 7 | ml |
A | 3 | 4 | ml |
A | 4 | 3 | ml |
B | 1 | 1 | ml |
B | 2 | 10 | ml |
B | 3 | 15 | ml |
B | 4 | 22 | ml |
Thank you Kindly!