Vlookup across multiple tabs

milesorru

Board Regular
Joined
Nov 3, 2011
Messages
133
Hi

I'm sure the answer to this is very simple.

I have a list of barcode numbers on one tab in column B. This barcode may then appear on another tab in column B as it may be returned. The different tabs are return centres. Lets say "Return 1", "Return 2", "Return 3". The easy thing to do would be to have "Return 1" etc running alongside the barcodes in the other tabs to return something but I cannot do that.

If it appears in 'Return 1' tab, I need it to return "Return 1". If it appears in 'Return 2', "Return 2" etc...

Many Thanks in advance
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If you can added the Sheet name next to barcode(like this)
Excel 2010
ABC
1
2
311111Return 1
4
5
6
7
8
9
10
11

<tbody>
</tbody>
Return1



you can then use:
Excel 2010
ABC
111111Return 1
2
3
4
5
6

<tbody>
</tbody>
Summary

Array Formulas
CellFormula
C1{=VLOOKUP(B1,INDIRECT("Return"&MATCH(TRUE,COUNTIF(INDIRECT("Return"&ROW(INDIRECT("1:10"))&"!b2:b100"),B1)>0,0)&"!b2:c100"),2,0)}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,578
Members
449,174
Latest member
chandan4057

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