Making VLOOKUP Range Static

  • Thread starter Thread starter schmid
  • Start date Start date
S

schmid

I have an excel file that has about 17 sheets. On three of those
sheets I have VLOOKUP's that look at the other sheets. I load the
other sheets with data and use a macro to format the data how I want
it. During these macros I do add some Columns to the sheets. The last
thing I do is recalucate to get the latest data from the VLOOKUP's.
However, when I add the columns to the sheets it changes the ranges on
my VLOOKUP's. I do not want that to occur. How do I make the range
static? I have tried the following, "$D:$Q", that does not do it.
what do I need to do?
 
Biff said:
Hi!

Try it like this:

=VLOOKUP(A1,INDIRECT("D:Q"),2,0)

Biff

The VLOOKUP is looking at a range that is on another sheet in the file.
What is the proper syntax to look at another sheet? where in the text
does the sheet name go?

Schmid
 
schmid said:
The VLOOKUP is looking at a range that is on another sheet in the file.
What is the proper syntax to look at another sheet? where in the text
does the sheet name go?

Schmid

Like this:

=VLOOKUP(A1,INDIRECT("'Sheet_name'!D:Q"),2,0)

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Vlookup and Indirect help!! 2
vlookup 4
Vlookup or similar 7
Average of cells from a table given certain criteria 2
Speek cells, barcode scanner 3
VLOOKUP 1
VLOOKUP ? 8
Formula not working - vlookup 1

Back
Top