VLookup not working (referencing external workbook)

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
I am referencing an external workbook. Which has a table similar to this one below: (Assume the table starts at cell A1)

First NameLast NameConcatJob SearchNotes
PeterParkerPeter ParkerYWants a job as a photographer
BruceWayneBruce WayneN
PepperPottsPepper Potts YSecretary or PA work

I want to reference this table, using the name in the concat column to return the notes for that person.

I tried a VLOOKUP but it just returns a value of zero. The formatting seems fine. I have checked spellings and for spaces.

I am looking for a solution that works. Can anyone help?

Here is an example of the formula not working for me =VLOOKUP(C15,'[Caseload Management File.xlsx]Sheet1'!$D$6:$H$250,4)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
If that data starts in A1 of the other workbook why are you trying to lookup a value in col D rather than C?
 
Upvote 0
If that data starts in A1 of the other workbook why are you trying to lookup a value in col D rather than C?
I was just be lazy with the table/explanation. Sorry I guess this causes confusion.

The source table is similar to that which I have provided, I've just tried to simplify it for the convenience in my post by removing columns not relevant. See below correction

Source Table
B​
C​
D​
E​
F​
G​
H​
1​
First NameLast NameConcatPhoneEmailJob SearchNotes
2​
PeterParkerPeter ParkerYWants a job as a photographer
3​
BruceWayneBruce WayneN
4​
PepperPottsPepper PottsY
Secretary or PA work​

My SheetABCDE
1First NameLast NameConcatNotes
2PepperPottsPepper Potts
3PeterParkerPeter Parker
4BruceWayneBruce Wayne

The point is that names are usually not in the matching cell row. So I am using the names in column C as the criteria, to find and return the corresponding data from the notes column.

Hopefully this makes more sense?
 
Upvote 0
In that case if you are trying to get the notes, the final argument of the vlookup should be 5 not 4
 
Upvote 0
Oh sorry I have tried 5 as well, which still returned zero. I changed it to 4 to test if with another cell to see if it made a difference. Which it didn't.

Is there an alternative function I can try that would produce the same lookup?
 
Upvote 0
It will only return 0 if the value in C15 is found in col D & col H for that row is empty.
 
Upvote 0
Assuming that you want an exact match try it like
Excel Formula:
=VLOOKUP(C15,'[Caseload Management File.xlsx]Sheet1'!$D$6:$H$250,5,0)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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