ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   matching fields between two workbooks (https://www.excelbanter.com/excel-worksheet-functions/145133-matching-fields-between-two-workbooks.html)

tukky142

matching fields between two workbooks
 
I have two work books. I am trying to find matching fields in workbook 2
using vlookup but I can only get it to work when I delete all text around the
field in question by using text to columns to separate out the record I am
after.

Is there a way of ignoring the text around the string I require?

Work book 1
YWB500220
Work book 2
(03)LR00:YWB500220 , VL00:30765034-AA , MA00:DH57-67730--Z01-


bj

matching fields between two workbooks
 
try
=vlookup("*"&(cell in WB1)&"*",range in WB2,column_no.,0)

"tukky142" wrote:

I have two work books. I am trying to find matching fields in workbook 2
using vlookup but I can only get it to work when I delete all text around the
field in question by using text to columns to separate out the record I am
after.

Is there a way of ignoring the text around the string I require?

Work book 1
YWB500220
Work book 2
(03)LR00:YWB500220 , VL00:30765034-AA , MA00:DH57-67730--Z01-



All times are GMT +1. The time now is 04:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com