Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP from multiple table_arrays?

I have what probably should be in one many-rowed table broken into three
separate tables side by side just so I can see them more easily.


......a.................b........c.......d........ ....e........f......g.............h
1..Phillip.........90..............Andy......10... .........Steward..6
2..Rebecca.....24..............Angela...10........ ....Greg.......5
3..Tracy..........20..............Sam.......10
4..Keith...........20


I want to enter a name and have the number associated with that name
returned. That would be easy with the vlookup if it were all in one
table_array {vlookup("tracy",a1:b4,2)} but how do I do it with the data
broken up? Is there a way to keep the visual ease like I have it and
reference multiple ranges?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP from multiple table_arrays?

Is there a way to keep the visual ease like I have it
and reference multiple ranges?


A sequential index/match would be one way
Assume lookup values entered in H2 down, eg: Tracy
Then in I2:
=IF(ISNA(MATCH(H2,A:A,0)),IF(ISNA(MATCH(H2,C:C,0)) ,IF(ISNA(MATCH(H2,E:E,0)),"",INDEX(F:F,MATCH(H2,E: E,0))),INDEX(D:D,MATCH(H2,C:C,0))),INDEX(B:B,MATCH (H2,A:A,0)))
Copy I2 down as far as required
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,100 Files:360 Subscribers:56
xdemechanik
---
"Seebs" wrote:
I have what probably should be in one many-rowed table broken into three
separate tables side by side just so I can see them more easily.


.....a.................b........c.......d......... ...e........f......g.............h
1..Phillip.........90..............Andy......10... .........Steward..6
2..Rebecca.....24..............Angela...10........ ....Greg.......5
3..Tracy..........20..............Sam.......10
4..Keith...........20


I want to enter a name and have the number associated with that name
returned. That would be easy with the vlookup if it were all in one
table_array {vlookup("tracy",a1:b4,2)} but how do I do it with the data
broken up? Is there a way to keep the visual ease like I have it and
reference multiple ranges?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default VLOOKUP from multiple table_arrays?

Hi,

You can try the following:

1. Assign names - Name range A1:B4 as First, D1:E3 as Second and G1:H2 as
Third
2. In cell A7, type First and in cell A8, type Greg
3. In cell D7, type the following formula
=IF(ISERROR(VLOOKUP(A8,INDIRECT(A7),2,0)),"",VLOOK UP(A8,INDIRECT(A7),2,0))
4. In cell D8:D10, type Greg, Rebecca, Keith
5. In E7:G7, type First, Second, Third
6. Now highlight range D7:G10
7. Go to Data Table
8. In column input cell, give the reference of cell A8
9. In row input cell, give the reference of cell A7

The table should now get populated with all the correct figures. Please
feel free to extend the list of names in range D8:D10 and run the data table
with all rows.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Seebs" wrote in message
...
I have what probably should be in one many-rowed table broken into three
separate tables side by side just so I can see them more easily.


.....a.................b........c.......d......... ...e........f......g.............h
1..Phillip.........90..............Andy......10... .........Steward..6
2..Rebecca.....24..............Angela...10........ ....Greg.......5
3..Tracy..........20..............Sam.......10
4..Keith...........20


I want to enter a name and have the number associated with that name
returned. That would be easy with the vlookup if it were all in one
table_array {vlookup("tracy",a1:b4,2)} but how do I do it with the data
broken up? Is there a way to keep the visual ease like I have it and
reference multiple ranges?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLOOKUP from multiple table_arrays?

This will only work if the value to be returned is numeric as is shown in
your sample data:

A10 = lookup name = Tracy

=SUMIF(A1:E4,A10,B1:F4)

--
Biff
Microsoft Excel MVP


"Seebs" wrote in message
...
I have what probably should be in one many-rowed table broken into three
separate tables side by side just so I can see them more easily.


.....a.................b........c.......d......... ...e........f......g.............h
1..Phillip.........90..............Andy......10... .........Steward..6
2..Rebecca.....24..............Angela...10........ ....Greg.......5
3..Tracy..........20..............Sam.......10
4..Keith...........20


I want to enter a name and have the number associated with that name
returned. That would be easy with the vlookup if it were all in one
table_array {vlookup("tracy",a1:b4,2)} but how do I do it with the data
broken up? Is there a way to keep the visual ease like I have it and
reference multiple ranges?



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
Multiple vlookup // sansk_23 Excel Worksheet Functions 2 November 22nd 07 05:50 PM
Vlookup with Multiple criteria and multiple sheets Cinny Excel Worksheet Functions 4 June 21st 07 01:47 AM
Vlookup multiple value deen Excel Worksheet Functions 15 April 10th 07 03:54 AM
Vlookup for multiple criteria, multiple worksheets jtoy Excel Worksheet Functions 4 January 25th 07 09:26 PM
How do I use VLOOKUP to ref multiple workbooks with multiple tabs? JackieW Excel Discussion (Misc queries) 2 April 11th 06 05:32 PM


All times are GMT +1. The time now is 09:56 PM.

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

About Us

"It's about Microsoft Excel"