LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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



 
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 11:47 PM.

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"