Vlookup - reading multiple rows

mirandapanda

New Member
Joined
Nov 16, 2017
Messages
1
Main Report:
I have my main booking references in column A, secondary supplier booking references in column B, amount due in column C.

Fund Report:
I have my main booking reference in this report.

For each main reference, there can be 1 secondary supplier ref, or multiple. If my main booking reference has more than 1 secondary supplier booking ref, it shows on separate rows. What I want to do is somehow collate the 2, so that when I have my funds report that shows which bookings to look at, I want to somehow vlookup or something my main ref off my fund report, to show each secondary supplier booking reference and the amount due on that row.

Any ideas?

Thanks
Miranda
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Re: Help with vlookup - reading multiple rows

how about?


Excel 2013/2016
ABCDEFG
1refsupplieramountrefsupplieramount
2A1000700C1000200
3C10002001002500
4A10016001004500
5B10025001006600
6C1002500
7D1002100
8A1003300
9B1003900
10C1004500
11A1005700
12D1005300
13C1006600
14A1007800
15B1008500
16A1009100
17A1010200
Report
Cell Formulas
RangeFormula
F2{=IF(COUNTIF($A$2:$A$17,$E$2)>=ROWS($F$2:F2),INDEX($B$2:$B$17,SMALL(IF($A$2:$A$17=$E$2,ROW($A$2:$A$17)-ROW($A$2)+1),ROWS($F$2:F2))),"")}
G2{=IF(COUNTIF($A$2:$A$17,$E$2)>=ROWS($F$2:G2),INDEX($C$2:$C$17,SMALL(IF($A$2:$A$17=$E$2,ROW($A$2:$A$17)-ROW($A$2)+1),ROWS($F$2:G2))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,217
Members
452,619
Latest member
Shiv1198

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