vba xlookup with #n/a

mattless1

Board Regular
Joined
Apr 1, 2011
Messages
102
Hi i'm looking for some help if possible?

i have a workbook where column A has a list of barcodes this amount can change (workbook1), then i have another workbook (workbook2) which has three columns with barcodes columns C, D & F in it, These relate to the barcodes in workbook1.

is it possible to have a vba code to search the first column C in workbook2 and and return what barcodes it finds then checks the #N/A's and look in the next column D and E so on until its looked through all the #N/A's

thanks in advance.
Matt
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
you can use the IFNA function
why can you just put all barcodes in one column?
 
Upvote 0
I can't pull them in from one column as the database products could have up to three barcodes and they export as barcode1 barcode2 and barcode3. in separate columns
i'll have a look in into IFNA

many thanks,
 
Upvote 0
you can do it nested, something like: =IFNA(vlookup(***),IFNA,(vlookup(***),vlookup(***)))
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top