Vlookup

datadummy

Active Member
Joined
Mar 16, 2017
Messages
313
Office Version
  1. 365
Platform
  1. Windows
I have the following VLOOKUP formula that is returning #REF and am not sure why.

=VLOOKUP($B15,Case_Form!$B$2:$B$186,7,FALSE)

For reference the number in B15 is present on the Case_Form tab.
 
my initial formula was on the other tab (Demographics) and now I am trying to apply the same formula onto a different tab (Case_Form). So initially I was wanting to pull from column E over on the Case_Form tab and now I'm wanting to pull from column G over on the Demographics tab.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
So to clarify if I have my formula on the "Case_Form" tab in cell AH7 and I want to reference the number that is in B7 and then locate that same number on the "Demographics" tab and bring over all additional information from the row where the number is located would my formula look like this?

VLOOKUP($B7,Demographics!$A$2:E$156,COLUMN(G15),FALSE)
 
Upvote 0
You need to change the lookup range to G as well.
 
Upvote 0
So I made the change and updated my range, but for some reason its still returning #N/A. Any thoughts on why this is occurring?
 
Upvote 0
Maybe it can't find the value of B7 in col A of the Demographics sheet.
 
Upvote 0
Good call, I changed it from A to B, but now its returning #REF !. This is quite the battle lol.
 
Upvote 0
In that case you need to make this change
Code:
COLUMN(F1)
because you are now returning a value from the 6th column not the 7th as the lookup range starts from column B
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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