Return MULTIPLE corresponding values for TWO Lookup Value, Horizontally, in one Row

windycity_SP500

New Member
Joined
Feb 6, 2020
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
Similar to this link(reference the bottom)- I am trying to return multiple corresponding values with two look up conditions, horizontally, in one row. Then I can apply it down other rows.

Not sure how to go about this- I have been stuck for days. I provided a sample below:

IDNameQty
AClark
9​
aAnn
11​
pBob
50​
pBob
65​
aJoe
66​
oTy
4​
AJoe
4​
bJoe
80​

What I need is here:

Based on Name and ID shown below, I need to fetch the corresponding qty for those look up conditions. For instance, Joe with ID 'A', should output QTY 66 and 4.

NameIDqtyqtyqtyqtyqtyqtyqtyetc…
Joea
bobB

I am able to return such value for one condition, but that isn't the result I need. Any help would be greatly appreciated. Thank you!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi & welcome to MrExcel.
How about
ZFluff.xlsm
ABCDEFGHIJKLMNO
1IDNameQtyNameIDqtyqtyqtyqtyqtyqtyqtyetc…
2AClark9Joea664      
3aAnn11bobp5065      
4pBob50joeb80       
5pBob65
6aJoe66
7oTy4
8AJoe4
9bJoe80
Data
Cell Formulas
RangeFormula
H2:O4H2=IFERROR(INDEX($C$2:$C$9,AGGREGATE(15,6,(ROW($C$2:$C$9)-ROW($C$2)+1)/(($B$2:$B$9=$F2)*($A$2:$A$9=$G2)),COLUMNS($H1:H1))),"")
 
Upvote 0
Hi & welcome to MrExcel.
How about
ZFluff.xlsm
ABCDEFGHIJKLMNO
1IDNameQtyNameIDqtyqtyqtyqtyqtyqtyqtyetc…
2AClark9Joea664      
3aAnn11bobp5065      
4pBob50joeb80       
5pBob65
6aJoe66
7oTy4
8AJoe4
9bJoe80
Data
Cell Formulas
RangeFormula
H2:O4H2=IFERROR(INDEX($C$2:$C$9,AGGREGATE(15,6,(ROW($C$2:$C$9)-ROW($C$2)+1)/(($B$2:$B$9=$F2)*($A$2:$A$9=$G2)),COLUMNS($H1:H1))),"")

Thank you so much! This is what I needed. I appreciate it.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top