Vlookup Help

davidhall

Board Regular
Joined
Mar 6, 2011
Messages
174
I have a vlookup function on worksheet 1 that references a fixed range of data on worksheet 2. On worksheet 2, I will be copying and pasting data from another spreadsheet onto worksheet 2 and for some reason the range formula on worksheet 1 changes to =VLOOKUP($B25,'Oper Data'!#REF!,2,FALSE), therefore, not returning my date. The formula should look like this =VLOOKUP($B25,'Oper Data'!$B$1:$B$150,2,FALSE)

Any suggestions?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,484
Is this always "$B$1:$B$150" or does it vary to say "$B$1:$B$250" ?
 

davidhall

Board Regular
Joined
Mar 6, 2011
Messages
174
It is always $b$1:$b$150

I am copy the cells from another spreadsheet and pasting them in worksheet 2. I have tried different methods of pasting and haven't been successful
 

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows

ADVERTISEMENT

Try replacing the formula with:

=VLOOKUP($B25,INDIRECT("'Oper Data'!$B$1:$B$150"),2,FALSE)
 

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,484
Your range must include at least Column C as you are using the "2" column reference...

=VLOOKUP($B25,'Oper Data'!$B$1:$C$150,2,FALSE)
 

Forum statistics

Threads
1,141,850
Messages
5,708,990
Members
421,602
Latest member
jkpce1880

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
Top