ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Disable Range Reference Update in Vlookup (https://www.excelbanter.com/excel-programming/385091-disable-range-reference-update-vlookup.html)

Matt.Russett

Disable Range Reference Update in Vlookup
 
I have some data that I update every week. I use a macro to update
this data. The macro moves the old data down one row and copies the
new data from various places and pastes it to the top row of my table.
On some other sheets I have vlookups that reference this table. Each
time that I run my macro to update my table the vlookup also updates
and shifts my range down a row....

For example
=VLOOKUP($A$4,$E$10:$E$500,1,False) becomes =VLOOKUP($A$4,$E$11:$E
$501,1,False)

How can I stop the VLOOKUP Range from updating each time I run my
macro?


Tom Ogilvy

Disable Range Reference Update in Vlookup
 
=VLOOKUP($A$4,$E:$E,1,False)

--
Regards,
Tom Ogilvy



"Matt.Russett" wrote:

I have some data that I update every week. I use a macro to update
this data. The macro moves the old data down one row and copies the
new data from various places and pastes it to the top row of my table.
On some other sheets I have vlookups that reference this table. Each
time that I run my macro to update my table the vlookup also updates
and shifts my range down a row....

For example
=VLOOKUP($A$4,$E$10:$E$500,1,False) becomes =VLOOKUP($A$4,$E$11:$E
$501,1,False)

How can I stop the VLOOKUP Range from updating each time I run my
macro?




All times are GMT +1. The time now is 04:27 PM.

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