ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Index Indirect to input worksheet name and range name (https://www.excelbanter.com/excel-discussion-misc-queries/135485-index-indirect-input-worksheet-name-range-name.html)

Native

Index Indirect to input worksheet name and range name
 
Hello,

I would like to performing an INDEX lookup based on an inputted
worksheet name and a range name on that worksheet.

For example, I have a worksheet named 'blue' and on that worksheet I
have a named range 'raw_data'. Why does this formula not work?

=INDEX(INDIRECT("'blue'"&"raw_data"),2,14)

I have the same range name 'raw_data' on several worksheets red, blue,
green, etc.

Thanks!


Vergel Adriano

Index Indirect to input worksheet name and range name
 
try it this way

=INDEX(INDIRECT("'blue'!raw_data"),2,14)


--

Hope that helps.

Vergel Adriano


"Native" wrote:

Hello,

I would like to performing an INDEX lookup based on an inputted
worksheet name and a range name on that worksheet.

For example, I have a worksheet named 'blue' and on that worksheet I
have a named range 'raw_data'. Why does this formula not work?

=INDEX(INDIRECT("'blue'"&"raw_data"),2,14)

I have the same range name 'raw_data' on several worksheets red, blue,
green, etc.

Thanks!




All times are GMT +1. The time now is 10:37 PM.

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