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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

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