ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   VLOOKUP Copy/Paste Problem (https://www.excelbanter.com/excel-worksheet-functions/163311-vlookup-copy-paste-problem.html)

Jai_Friday

VLOOKUP Copy/Paste Problem
 
Good Morning All,

Could someone help .

If I copy a Vlookup across a whole column in a worksheet the table array
variable adjusts accordly to where the cell is .

e.g Sheet1 has VLOOKUP(A2,Sheet2!A1:D50000,2,FALSE)

if I copy this down to the next cell below it will become

VLOOKUP(A3,Sheet2!A2:D50001,2,FALSE)

What I want to do is lock the Table array so it stays the same no matter
where I copy the vlookup to.

can anyone help

Thanks in advance

Jason Cutmore


Carlo

VLOOKUP Copy/Paste Problem
 
try this

VLOOKUP($A$2,Sheet2!$A$1:$D$50000,2,FALSE)

the $ is used for fixing the cell reference

if you want to fix only one part, you can do that as well
$A2 or A$2

hth

Carlo

"Jai_Friday" wrote:

Good Morning All,

Could someone help .

If I copy a Vlookup across a whole column in a worksheet the table array
variable adjusts accordly to where the cell is .

e.g Sheet1 has VLOOKUP(A2,Sheet2!A1:D50000,2,FALSE)

if I copy this down to the next cell below it will become

VLOOKUP(A3,Sheet2!A2:D50001,2,FALSE)

What I want to do is lock the Table array so it stays the same no matter
where I copy the vlookup to.

can anyone help

Thanks in advance

Jason Cutmore


Jai_Friday

VLOOKUP Copy/Paste Problem
 
Cheers Carlo,

Done the job ;)



"Carlo" wrote:

try this

VLOOKUP($A$2,Sheet2!$A$1:$D$50000,2,FALSE)

the $ is used for fixing the cell reference

if you want to fix only one part, you can do that as well
$A2 or A$2

hth

Carlo

"Jai_Friday" wrote:

Good Morning All,

Could someone help .

If I copy a Vlookup across a whole column in a worksheet the table array
variable adjusts accordly to where the cell is .

e.g Sheet1 has VLOOKUP(A2,Sheet2!A1:D50000,2,FALSE)

if I copy this down to the next cell below it will become

VLOOKUP(A3,Sheet2!A2:D50001,2,FALSE)

What I want to do is lock the Table array so it stays the same no matter
where I copy the vlookup to.

can anyone help

Thanks in advance

Jason Cutmore



All times are GMT +1. The time now is 07:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com