![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
How do I make a vlookup return a range name in an array table? I have a spreadsheet with several ranges that holds budgeting and forecasting data but only a single graph. The idea is to select a particular product from a drop down combo box and the graph displays only that product. To this end I have an array formula:
{=index(data_area,e62,0)} which works well if the data is all contiguous. Where I am striking trouble is when I try to use a vlookup instead of "data_array" to return a range name but I get returned the dreaded #Value, I know there should be a simple answer but can't seem to see it. Any help would be much appreciated. |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=INDEX(INDIRECT(VLOOKUP(lookup-value,RangeList,2,0)),E62,0) where Rangelist is a lookup table of ranges of inetrest. Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
|
Thanks Aladin, it worked perfectly
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|