VLookup returning a whole row of data?

Excel Ron

Board Regular
Joined
Apr 19, 2011
Messages
52
I am trying to figure out how to use the vlookup formula to return a whole row of data. On one sheet I have all the data with account numbers. I want to match those account numbers and when it matches that I want it to return the whole row of data. Any help would be great.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
you will need to have a vlookup on each part, so you can setup your formula to copy across the columns. Example:
Excel Workbook
ABCD
1AccountsNameFlavorType
2XX46IJ46Joe SmithMintS
3CI88DG12Don JuanChocolateD
4GN91VH82Jose CuravoVanillaA
5HZ14AX82Don RickelsStrawberryD
6JG12OE23George MichaelsRock RoadS
7OX61EM19Tom JonesBubble GumA
8PX54OU23Carol KingOrange SherbertS
9WV38EM82Tim BurtonTutty FruityA
Sheet2
Excel 2003
Excel Workbook
ABCD
1AccountsNameFlavorType
2WV38EM82Tim BurtonTutty FruityA
Sheet1
Excel 2003
Cell Formulas
RangeFormula
B2=VLOOKUP($A2,Sheet2!$A$1:$D$10,COLUMN(B2),0)
C2=VLOOKUP($A2,Sheet2!$A$1:$D$10,COLUMN(C2),0)
D2=VLOOKUP($A2,Sheet2!$A$1:$D$10,COLUMN(D2),0)

so the formula in B can be copied across for as many columns as you need
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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