Reference a column in another workbook

jpulse

New Member
Joined
Aug 25, 2017
Messages
13
I am trying to reference a column in another workbook. I have two separate workbooks, MasterList and InStock, the MasterList never changes, but the InStock workbook can change depending on what I have in stock at the time. I want workbook (InStock) to fill in the serial number of its matching part number if it is found in the MasterList workbook. Is there a formula that can do this? Or a Macro that can do this? Thank you for your help
Workbook 1 (MasterList.xlsx)

A
B
C
1
Part Number
Serial Number
Description
2
50376
AE456
Desktop
3
50421
AE342
Desktop
4
50779
12GX5
Laptop
5
50799
13GD9
Laptop
6
50814
G145FDX
Tablet
7
50836
G129WQE
Tablet
8
63147
A0983456
Cellphone
9
64318
A0123879
Cellphone
10
64347
98UYT654
Scanner

<tbody>
</tbody>

Workbook 2 (InStock.xlsx)

A
B
C
1
Part Number
Serial Number
Description
2
50376

Desktop
4
50779

Laptop
7
50836

Tablet
9
64318

Cellphone
10
64347

Scanner

<tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the forums!

Try using INDEX/MATCH:


Excel 2013/2016
ABC
1Part NumberSerial NumberDescription
250376AE456Desktop
350421AE342Desktop
45077912GX5Laptop
55079913GD9Laptop
650814G145FDXTablet
750836G129WQETablet
863147A0983456Cellphone
964318A0123879Cellphone
106434798UYT654Scanner
Sheet1




Excel 2013/2016
ABC
1Part NumberSerial NumberDescription
250376AE456Desktop
35077912GX5Laptop
450836G129WQETablet
564318A0123879Cellphone
66434798UYT654Scanner
Sheet2
Cell Formulas
RangeFormula
B2=IFERROR(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0)),"")
 
Last edited:
Upvote 0
I tried that formula, but when you drag it down the whole column it lists all serial numbers in order from the MasterList, look like it went in order from the masterlist, not skipped to the correct one.
50376 - AE456 - Desktop (correct)
50779 - AE342 - Laptop (wrong serial number)
50836 - 12GX5 - Tablet (wrong serial number)
ext.....
 
Upvote 0
You may have your formula references off. Can you please paste the exact formula you're using? The one I provided works on my end and is a standard INDEX/MATCH formula, so it shouldn't be returning results like you have described.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD]=IFERROR(INDEX(MasterList!B:B,MATCH(A2,InStock!A:A,0)),"")[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Try:

=IFERROR(INDEX(MasterList!B:B,MATCH(A2,MasterList!A:A,0)),"")

What is happening is that you are pointing the lookup_array in the MATCH formula to the wrong sheet.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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