#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Michel Khennafi
 
Posts: n/a
Default Special Vlookup?

Good evening....

In a worksheet W1, I have a situation where I an order number O1 that has
been shipped in 1 to N shipments S1, S2,...Sn.

In a worksheet W2, I have rows that represent the shipments but I only have
the order number 01 to identify them.

I would like to add a column and assign each row where O1 is the Shipment
numbers S1 to Sn.


On W1

A B
__ __
1 O1 S1
2 O1 S2


On W2

A B
__ __
1 O1 (Blank)
2 O1 (blank)


Desired Result on W2

A B
__ __
1 O1 S1
2 O1 S2

If I use Vlookup I will only be able to match one for one, so If I put
B1=+vlookup(A1,W2!A1:B2,2,False) I can get the value for the first row (in
that case S1)... What would be the trick to guarantee that I would have S2
on W2!B2?

Any help greatly appreciated


Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default Special Vlookup?

One way, if your data is on worksheet W1 A1:B7, on W2 enter in B1 and copy
down. After you type or paste the formula into the formula bar you must hit
Control+Shift+Enter

=INDEX(W1!$B$1:$B$7,SMALL(IF(W1!$A$1:$A$7=A1,ROW(I NDIRECT("1:"&ROWS(W1!$A$1:$A$7))),""),COUNTIF($A$1 :A1,A1)))



"Michel Khennafi" wrote:

Good evening....

In a worksheet W1, I have a situation where I an order number O1 that has
been shipped in 1 to N shipments S1, S2,...Sn.

In a worksheet W2, I have rows that represent the shipments but I only have
the order number 01 to identify them.

I would like to add a column and assign each row where O1 is the Shipment
numbers S1 to Sn.


On W1

A B
__ __
1 O1 S1
2 O1 S2


On W2

A B
__ __
1 O1 (Blank)
2 O1 (blank)


Desired Result on W2

A B
__ __
1 O1 S1
2 O1 S2

If I use Vlookup I will only be able to match one for one, so If I put
B1=+vlookup(A1,W2!A1:B2,2,False) I can get the value for the first row (in
that case S1)... What would be the trick to guarantee that I would have S2
on W2!B2?

Any help greatly appreciated


Thanks



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 Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP merge documents, copy-paste special... nastech Excel Discussion (Misc queries) 4 February 12th 06 12:57 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
VLOOKUP Duke Carey Excel Worksheet Functions 1 March 26th 05 02:15 AM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 04:21 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"