VLOOKUP Help

wkenddad

Board Regular
Joined
Mar 20, 2012
Messages
71
Okay,

I have 2 worksheets

Worksheet "A"
Column B = Name
Column C = Unique number

Woorksheet "B"
Column A = Name
Column B = Unique number

How can I get Worksheet A, Column A (Name) to display the Worksheet B, Column A (Name) using the Unique number in Worksheet A Column B as the Lookup criteria?

This is what I've tried in cell A1 of Worksheet "A"

=VLOOKUP(B2,'Worksheet B'!$A$1:$B$2225,1,FALSE)

I've also tried it without the $
=VLOOKUP(B2,'Worksheet B'!A1:B2225,1,FALSE)

Any ideas where I'm going wrong?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try:

=INDEX('Worksheet B'!A:A,MATCH(C2,'Worksheet B'!B:B,0))

The problem with using VLOOKUP is that you are trying to lookup a value to the LEFT of the lookup column. VLOOKUP only has capabilities to look to the right of the lookup column (which is always the first column of the referenced table).
 
Upvote 0
Cheers - thanks for the feedback. ;)
 
Upvote 0

Forum statistics

Threads
1,203,388
Messages
6,055,129
Members
444,763
Latest member
Jaapaap

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