Two tables on separate worksheets - need result of text in worksheet 1

jlr123

New Member
Joined
Mar 6, 2014
Messages
44
I have two tables on separate worksheets in a workbook. Need formula to match column B in
worksheet 1 with column B in worksheet 2 then return the text that is in column A in worksheet 2 into a new column (D) on worksheet 1.
Thanks so much!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi JLR123

Some comments:
You had "Worksheet '2'" instead of You had "'Worksheet 2'" in some places so it was looking for a 2.xlsx workbook.
You also had Manual Calculation set so you wouldn't see all changes at the same time. I suggest Automatic unless your sheet is huge.
Key fields should never be entirely numeric as you could hit errors matching Cust No if it changes in a column or rounding errors.

Here's your two sheets with working formulae (and I've emailed the larger sheet).

JLR123-V2.xlsx
ABC
1SPCust NoCustomerName
2ZZ10101.00Example Name 1
3ZZ10101.00Example Name 1
4ZZ10103.00Example Name 1
5ZZ10103.00Example Name 1
6ZZ10103.00Example Name 1
7ZZ10103.00Example Name 1
8BSB0103.01Example Name 2
9BSB0103.01Example Name 2
10WAM0103.05Example Name 3
11WAM0103.05Example name 3
Worksheet 2


JLR123-V2.xlsx
ABCDEF
1SPCust NoCustomerNameWksheet 2 SP
2ZZ10103.00Example Name 1ZZ1
3ZZ10103.00Example Name 1ZZ1
4ZZ10103.00Example Name 1ZZ1
5ZZ10103.00Example Name 1ZZ1
6ZZ10103.00Example Name 1ZZ1
7ZZ10103.00Example Name 1ZZ1
8ZZ10103.00Example Name 1ZZ1
9ZZ10103.00Example Name 1ZZ1
10ZZ10103.01Example Name 2BSB
11ZZ10103.01Example Name 2BSBBSBResult should be BSB
12ZZ10103.05Example Name 3WAMWAMResult should be WAM
13ZZ10103.05Example name 3WAMWAMResult should be WAM
Worksheet 1
Cell Formulas
RangeFormula
D2:D13D2=IFERROR(INDEX('Worksheet 2'!A:A,MATCH(B2,'Worksheet 2'!B:B,0)),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,561
Messages
6,120,234
Members
448,951
Latest member
jennlynn

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