Hello,
I am trying to return values if either criteria is found in the item description. For example if the text in Column G is found in Column A then I want the value in Column H to return; and if the text in Column I is found in Column A then I want the value in Column J to return.
I am trying to return values if either criteria is found in the item description. For example if the text in Column G is found in Column A then I want the value in Column H to return; and if the text in Column I is found in Column A then I want the value in Column J to return.
Book2.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Item Desc | Grouping | Payment Type | Item | Grouping 1 | Payment Type 1 | Grouping 2 | Payment Type 2 | ||||
2 | 2010 Apple 20 | Fruit | Fruit | 2010 Apple | Credit | 2010 Banana | Credit | |||||
3 | 2010 Apple 50 | Fruit | Vegetable | 2102 Carrot | Cash | 2105 Carrot | Credit | |||||
4 | 2102 Carrot 15 | Vegetable | ||||||||||
5 | 2010 Apple 15 | Fruit | ||||||||||
6 | 2010 Banana 30 | Fruit | ||||||||||
7 | 2105 Carrot 60 | Vegetable | ||||||||||
8 | 2105 Carrot 15 | Vegetable | ||||||||||
9 | 2010 Apple 60 | Fruit | ||||||||||
10 | 2010 Apple 100 | Fruit | ||||||||||
11 | 2010 Banana 50 | Fruit | ||||||||||
12 | 2102 Carrot 45 | Vegetable | ||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B12 | B2 | =INDEX($F$2:$F$3,AGGREGATE(15,6,(ROW($F$2:$F$3)-ROW($F$2)+1)/(ISNUMBER(SEARCH($G$2:$I$3,A2))),1)) |