excelnewb221
New Member
- Joined
- Dec 14, 2022
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
Hello,
Hoping for some help. Unfortuanately the Xl2bb Addin is disabled on my computer by Admin access.
I have 2 columns.
Column A, contains the source data. This column contains a string of words.
Column B will contain the formula.
Column C contains a string of words. These values may or may not be in Column A.
However, if any word from the cell in column C, matches any word from a cell in column A, please return that value from column A, next to its respective cell from column C.
This is basically what I'm trying to accomplish:
And below are the terrible attempts I've made. I clearly don't know how to make this work.
Not really sure the best approach to take, so hoping someone could help guide me in that regard.
Please let me know what is needed to better articulate what I'm trying to achieve. Really appreciate any help.
Hoping for some help. Unfortuanately the Xl2bb Addin is disabled on my computer by Admin access.
I have 2 columns.
Column A, contains the source data. This column contains a string of words.
Column B will contain the formula.
Column C contains a string of words. These values may or may not be in Column A.
However, if any word from the cell in column C, matches any word from a cell in column A, please return that value from column A, next to its respective cell from column C.
This is basically what I'm trying to accomplish:
Data (column A) | Formula (column B) | Original Value (column C) | Formula will produce: |
Apple Carrot Orange | Orange Carrot | Apple Carrot Orange | |
Beet Tomato Onion | Tomato | Beet Tomato Onion | |
Pepper Banana Grape | Grape Juice | Pepper Banana Grape | |
Lettuce Kale Chia | Kale Spinach Broccoli | Lettuce Kale Chia | |
Apple Carrot Orange | Orange Carrot | Apple Carrot Orange | |
Beet Tomato Onion | Beet Juice | Beet Tomato Onion | |
Pepper Banana Grape | Strawberry | N/A | |
Lettuce Kale Chia | Kale | Lettuce Kale Chia | |
Apple Carrot Orange | Orange | Apple Carrot Orange | |
Beet Tomato Onion | Juice | N/A |
And below are the terrible attempts I've made. I clearly don't know how to make this work.
Not really sure the best approach to take, so hoping someone could help guide me in that regard.
Please let me know what is needed to better articulate what I'm trying to achieve. Really appreciate any help.
Data | Formula Column | Formula Written | Original Value | Value for Formula to Work | Problem |
Apple Carrot Orange | Beet Tomato Onion | INDEX(A2:A5,MATCH(E2,A2:A5)) | Orange Carrot | Orange Carrot | Index/Match - returns value from 2nd row? |
Beet Tomato Onion | Beet Tomato Onion | VLOOKUP(E3&"*",A:A,1,FALSE) | Beet Juice | Beet | Vlookup - only returns if first word matches? |
Pepper Banana Grape | Pepper Banana Grape | VLOOKUP(E4&"*"&"*",A:A,1,FALSE) | Grape Juice | Pepper | Vlookup - only returns if first word matches? |
Lettuce Kale Chia | Lettuce Kale Chia | INDEX(A2:A5,MATCH("*"&E5,A2:A5,0)) | Kale Spinach Broccoli | Chia | Index/Match - only returns if last word matches |
Apple Carrot Orange | 0 | XLOOKUP(TRUE,ISNUMBER(SEARCH(D6:D9,A6)),D6:D9,0) | Orange Carrot | ||
Beet Tomato Onion | 0 | FILTER(D6:D9,ISNUMBER(SEARCH(D6:D9,A6)),0) | Beet Juice | ||
Pepper Banana Grape | #N/A | MATCH(TRUE,ISNUMBER(SEARCH(D6:D9,A6)),0) | Grape Juice | ||
Lettuce Kale Chia | #N/A | XLOOKUP("*"&D9&"*",A6:A9,A6:A9,,2) | Kale Spinach Broccoli | Only works if column C contains one word | |
Apple Carrot Orange | #N/A | INDEX(A7:A10,MATCH("*"&D10,A7:A10,0)) | Apple Orange | ||
Beet Tomato Onion | #N/A | INDEX(A8:A11,MATCH("*"&D11&"*",A8:A11,0)) | Beet Juice |