Vlookup

datadummy

Active Member
Joined
Mar 16, 2017
Messages
312
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.
 
Re: Help with VLOOKUP

=VLOOKUP($B15,Case_Form!$B$2:$I186,COLUMN()-6,FALSE)
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Re: Help with VLOOKUP

Ok, it should be
=VLOOKUP($B15,Case_Form!$B$2:I$186,COLUMN()-6,FALSE)
 
Upvote 0
Re: Help with VLOOKUP

That worked, thanks! So now I'm trying to make the formula work onto the other tab now and I'm clearly botching the formula again as I keep getting #REF ! as the response. Here is my formula,
VLOOKUP($B7,Demographics!$A$2:K$156,COLUMN()-4,FALSE)
 
Upvote 0
Re: Help with VLOOKUP

What cell is the formula in & what is the first column to be returned?
 
Upvote 0
Re: Help with VLOOKUP

The formula is in cell AH7 and the first column to be returned from the Demographics tab is column E.
 
Upvote 0
Re: Help with VLOOKUP

In that case use
VLOOKUP($B7,Demographics!$A$2:E$156,COLUMN(E7),FALSE)
 
Upvote 0
Re: Help with VLOOKUP

So in the event that my matching common number is not in the same row on each tab then how would I address that? For example my formula is in AH7 and the number in B7 on that tab but is in cell B15 on my reference tab "Demographics".
 
Upvote 0
Re: Help with VLOOKUP

Not sure I understand what you're saying.
Do you want to search col B of Demographics for the value in B7 rather than col A?
 
Upvote 0
Here is my current formula =VLOOKUP($B7,Demographics!$A$2:E$156,COLUMN(E7),FALSE)

What I would like to accomplish is take the number that is in B7 and locate it on the Demographics tab within the given range then return everything else in that row from column G over. I hope that makes sense.
 
Upvote 0
Earlier you said you wanted to get the values from column E onwards, now you're saying col G.
Which is it?
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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