Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 7
Lightbulb vlookup from a list and return the range

Dear all

I have a sheet with as many as 50 named ranges in sheet 1. These names are in a drop own list put in data validation in sheet 2.

I need to get the entire range to be returned for the name selected in the drop down.

For eg: If I select JOHN in the drop down I Should get the range named JOHN (which may be of 8C X 12R dimension).

I have tried IF & Vloookup combination entered as an array formula but it is working upto 7 names only. Please help me..

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup from a list and return the range

Maybe you meant something like this:
=VLOOKUP(A2,INDIRECT(B2),2,0)
where B2 is the DV cell to select the named range
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"suraneniaditya" wrote in message
...

Dear all

I have a sheet with as many as 50 named ranges in sheet 1. These names
are in a drop own list put in data validation in sheet 2.

I need to get the entire range to be returned for the name selected in
the drop down.

For eg: If I select JOHN in the drop down I Should get the range named
JOHN (which may be of 8C X 12R dimension).

I have tried IF & Vloookup combination entered as an array formula but
it is working upto 7 names only. Please help me..

Thanks




--
suraneniaditya



  #3   Report Post  
Junior Member
 
Posts: 7
Post

May be yes. but the result is not a single value it is a named range ( each range contains the details of tax payments relating to various tax payers. which looks as follows.

Sl No Name Tax ID No Field 1 Field 2 Field 3 Field 4 Field5
1 JOY 5454
2 JOY 5454
3 JOY 5454

the other details like subtotals are to be summarised in to a seperate template. to be precise this range of data should be returned as an annexure giving the detailed breakup of the total summary on top.

I tried IF(B2="JOY",JOY,0) nested for 7 names and entered as an array formula. This is working only for 7 names. but there are hundreds more.

Pls help me

Adi

Quote:
Originally Posted by Max View Post
Maybe you meant something like this:
=VLOOKUP(A2,INDIRECT(B2),2,0)
where B2 is the DV cell to select the named range
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"suraneniaditya" wrote in message
...

Dear all

I have a sheet with as many as 50 named ranges in sheet 1. These names
are in a drop own list put in data validation in sheet 2.

I need to get the entire range to be returned for the name selected in
the drop down.

For eg: If I select JOHN in the drop down I Should get the range named
JOHN (which may be of 8C X 12R dimension).

I have tried IF & Vloookup combination entered as an array formula but
it is working upto 7 names only. Please help me..

Thanks




--
suraneniaditya
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default vlookup from a list and return the range

Maybe something like this could serve your intents

Illustrated in this sample:
http://www.freefilehosting.net/download/3iajg
Retrieving identical size defined ranges based on DV.xls

Let's say you have set-up defined ranges (Assumed identical size)
Joy =x!$A$2:$H$4
Mary =x!$A$5:$H$7
Peter =x!$A$8:$H$10
etc

In another sheet: y,
In B2 is a DV to select the identically sized defined ranges,
eg: Joy, Mary, Peter, etc

You could select a range equal to the defined ranges' size just below the DV
cell,
eg select B4:I11 (B4 active)

Then paste this into the formula bar, array-enter (press CTRL+SHIFT+ENTER):
=IF(B2="","",IF(INDIRECT(B2)=0,"",INDIRECT(B2)))
The range B4:I11 will be populated as desired, depending on the name
selected in B2
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"suraneniaditya" wrote in message
...

May be yes. but the result is not a single value it is a named range (
each range contains the details of tax payments relating to various tax
payers. which looks as follows.

Sl No Name Tax ID No Field 1 Field 2 Field 3
Field 4 Field5
1 JOY 5454
2 JOY 5454
3 JOY 5454

the other details like subtotals are to be summarised in to a seperate
template. to be precise this range of data should be returned as an
annexure giving the detailed breakup of the total summary on top.

I tried IF(B2="JOY",JOY,0) nested for 7 names and entered as an array
formula. This is working only for 7 names. but there are hundreds more.
Pls help me
Adi



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup to return blank cell if nothing in range Haz Excel Discussion (Misc queries) 2 April 15th 08 08:22 PM
Can VLookup return the LAST value in a range? Steve Excel Worksheet Functions 3 December 17th 07 05:18 PM
Vlookup to Return a Range of Data James Excel Discussion (Misc queries) 0 July 13th 06 09:44 PM
Vlookup to Return a Range of Data Rob Excel Discussion (Misc queries) 13 June 1st 06 04:02 AM
How do I sum a range which includes the "#N/A" VLOOKUP return valu Sailor Excel Worksheet Functions 6 May 9th 05 08:46 AM


All times are GMT +1. The time now is 07:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"