Hello,
I have a spreadsheet right now that contains a column for a unique identifier of a file. These strings can be over 380 characters long. I have another spreadsheet that has a master list of these unique IDs some of which contain a pipe delimiter because they have multiple values within one cell.
I'll try and explain with this simple table (my data is more complex)
Table A:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]door[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Table B:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]cat|lizard|ant|hamster[/TD]
[TD]small[/TD]
[/TR]
[TR]
[TD]dragon|hippo|dog|buffalo[/TD]
[TD]big[/TD]
[/TR]
[TR]
[TD]stove|door|microwave|television[/TD]
[TD]home[/TD]
[/TR]
</tbody>[/TABLE]
Basically what I want is to search for the string 'cat' from Column A in Column C and then pull back Column D into Column B. So the first cell in Column B would be return the value 'small'.
Right now, I have delimited Column C and I'm running multiple VLOOKUPs (one at a time) while also using the RIGHT formula because as I said, the characters exceed the amount accepted by VLOOKUP.
If I continue with this method of delimiting the cell and running VLOOKUPs one at a time, I'll have to do at least 40 more VLOOKUPs.
Any easier way to accomplish this?
I have a spreadsheet right now that contains a column for a unique identifier of a file. These strings can be over 380 characters long. I have another spreadsheet that has a master list of these unique IDs some of which contain a pipe delimiter because they have multiple values within one cell.
I'll try and explain with this simple table (my data is more complex)
Table A:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]cat[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]dog[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]door[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Table B:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Column C[/TD]
[TD]Column D[/TD]
[/TR]
[TR]
[TD]cat|lizard|ant|hamster[/TD]
[TD]small[/TD]
[/TR]
[TR]
[TD]dragon|hippo|dog|buffalo[/TD]
[TD]big[/TD]
[/TR]
[TR]
[TD]stove|door|microwave|television[/TD]
[TD]home[/TD]
[/TR]
</tbody>[/TABLE]
Basically what I want is to search for the string 'cat' from Column A in Column C and then pull back Column D into Column B. So the first cell in Column B would be return the value 'small'.
Right now, I have delimited Column C and I'm running multiple VLOOKUPs (one at a time) while also using the RIGHT formula because as I said, the characters exceed the amount accepted by VLOOKUP.
Code:
=VLOOKUP("*"&RIGHT(A1,240),'[Book1.xlsx]Sheet1'!$A:$B,2,0)
If I continue with this method of delimiting the cell and running VLOOKUPs one at a time, I'll have to do at least 40 more VLOOKUPs.
Any easier way to accomplish this?
Last edited: