Vlookup

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Vlookup is bringing 1st line data in column B from column F, how can I bring 2nd & 3rd line data if order number is same?

Book1
ABCDEFG
1FinanceSales
2AccountOrder No.Reference No.AccountOrder No.Reference No.
343001119AB1243001119AB12
443001119AB1243001120AB13
543011130AB1443011130AB14
643021131AB1543021131AB15
743021131AB1543021132AB16
843021131AB1543021133AB17
943021131AB1543021134AB18
Sheet1
Cell Formulas
RangeFormula
B3:B9B3=VLOOKUP($A3,$E$3:$G$9,2,0)
C3:C9C3=VLOOKUP($A3,$E$3:$G$9,3,0)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Is this what you mean?

23 03 09.xlsm
ABCDEFG
2AccountOrder No.Reference No.AccountOrder No.Reference No.
343001119AB1243001119AB12
443001120AB1343001120AB13
543011130AB1443011130AB14
643021131AB1543021131AB15
743021132AB1643021132AB16
843021133AB1743021133AB17
943021134AB1843021134AB18
Lookup
Cell Formulas
RangeFormula
B3:B9B3=INDEX(F:F,AGGREGATE(15,6,ROW(E$3:E$9)/(E$3:E$9=A3),COUNTIF(E$3:E3,E3)))
C3:C9C3=INDEX(G:G,AGGREGATE(15,6,ROW(E$3:E$9)/(E$3:E$9=A3),COUNTIF(E$3:E3,E3)))
 
Upvote 0
Solution
Is this what you mean?

23 03 09.xlsm
ABCDEFG
2AccountOrder No.Reference No.AccountOrder No.Reference No.
343001119AB1243001119AB12
443001120AB1343001120AB13
543011130AB1443011130AB14
643021131AB1543021131AB15
743021132AB1643021132AB16
843021133AB1743021133AB17
943021134AB1843021134AB18
Lookup
Cell Formulas
RangeFormula
B3:B9B3=INDEX(F:F,AGGREGATE(15,6,ROW(E$3:E$9)/(E$3:E$9=A3),COUNTIF(E$3:E3,E3)))
C3:C9C3=INDEX(G:G,AGGREGATE(15,6,ROW(E$3:E$9)/(E$3:E$9=A3),COUNTIF(E$3:E3,E3)))
Yes thanks
 
Upvote 0
In your future questions, please mark the post that actually answered your question as the solution, not your post saying it worked. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,930
Members
449,094
Latest member
teemeren

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