ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Range naming (https://www.excelbanter.com/excel-discussion-misc-queries/124067-range-naming.html)

Squeaky

Range naming
 
I have a range that I have named "RANGE1". I can do a vlookup on this range
by putting the range name in the formula instead of the actual range. Is it
possible to place the word RANGE1 in a cell (say A1) and then reference the
cell A1 in the formula? I want to be able to change what the vlookup looks
for by changing the range name in A1.

Thanks!

Squeaky

pinmaster

Range naming
 
Hi,

Yes, use:

INDIRECT(A1) istead of the range name.

HTH
Jean-Guy

"Squeaky" wrote:

I have a range that I have named "RANGE1". I can do a vlookup on this range
by putting the range name in the formula instead of the actual range. Is it
possible to place the word RANGE1 in a cell (say A1) and then reference the
cell A1 in the formula? I want to be able to change what the vlookup looks
for by changing the range name in A1.

Thanks!

Squeaky


Squeaky

Range naming
 
Worked like a charm.

Thanks pinmaster.

"pinmaster" wrote:

Hi,

Yes, use:

INDIRECT(A1) istead of the range name.

HTH
Jean-Guy

"Squeaky" wrote:

I have a range that I have named "RANGE1". I can do a vlookup on this range
by putting the range name in the formula instead of the actual range. Is it
possible to place the word RANGE1 in a cell (say A1) and then reference the
cell A1 in the formula? I want to be able to change what the vlookup looks
for by changing the range name in A1.

Thanks!

Squeaky



All times are GMT +1. The time now is 01:35 AM.

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