Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
WTG
 
Posts: n/a
Default How to do more then one vlookup?


how do I use vlookup to get more then one line?

everything I try calls up the same line of information...

ie....

I would like to use the value of C8, and pull out all the rows above
it that have the same value in column A, and copy them to rows
11,12,13,14...


A B C D
1 WHO 123 456 789
2 WHY ABC DEF GHI
3 WHO 101 112 131
4 WHEN 123 321 321
5 WHERE 454 HGH
6 WHO OIUI IOOI OIJ
7
8 WHO
9
10
11 WHO 123 456 789
12 WHO 101 112 131
13 WHO OIUI IOOI OIJ
14


thanks for the help

Wally







  #2   Report Post  
Max
 
Posts: n/a
Default

Try this ..

Assume A8 contains the key value, say: WHO
(I used A8, not C8 as in post - typo?)

Use an empty col to the right, say col E?
Put in E1: =IF(A1=$A$8,ROW(),"")
Copy E1 down to E6

Put in A11:

=IF(ISERROR(SMALL($E:$E,ROWS($A$1:A1))),"",INDEX(A :A,MATCH(SMALL($E:$E,ROWS(
$A$1:A1)),$E:$E,0)))

Copy A11 across to D11, fill down to D16
(cover the same vertical range as was done in E1:E6)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"WTG" wrote in message
...

how do I use vlookup to get more then one line?

everything I try calls up the same line of information...

ie....

I would like to use the value of C8, and pull out all the rows above
it that have the same value in column A, and copy them to rows
11,12,13,14...


A B C D
1 WHO 123 456 789
2 WHY ABC DEF GHI
3 WHO 101 112 131
4 WHEN 123 321 321
5 WHERE 454 HGH
6 WHO OIUI IOOI OIJ
7
8 WHO
9
10
11 WHO 123 456 789
12 WHO 101 112 131
13 WHO OIUI IOOI OIJ
14


thanks for the help

Wally









  #3   Report Post  
WTG
 
Posts: n/a
Default

Thanks, I'll try it.


On Sat, 4 Jun 2005 22:07:17 +0800, "Max" wrote:

Try this ..

Assume A8 contains the key value, say: WHO
(I used A8, not C8 as in post - typo?)

Use an empty col to the right, say col E?
Put in E1: =IF(A1=$A$8,ROW(),"")
Copy E1 down to E6

Put in A11:

=IF(ISERROR(SMALL($E:$E,ROWS($A$1:A1))),"",INDEX( A:A,MATCH(SMALL($E:$E,ROWS(
$A$1:A1)),$E:$E,0)))

Copy A11 across to D11, fill down to D16
(cover the same vertical range as was done in E1:E6)


  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !.
Thanks for posting back
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"WTG" wrote in message
...
Thanks, I'll try it.



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
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 08:42 AM.

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"