LOOKUP

tbird

Board Regular
Joined
Oct 21, 2002
Messages
184
Is there a way to use one of the LOOKUP functions (or a related function) to return data from multiple cells in the same row instead of just one cell? For instance:
If Col A in a table array contains names and column B contains ages and columns C:F contain other personal data; is there a combination of functions that will report the data in columns C:F as well as column B given a lookup value in col A?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You could concatenate the result of several look ups, eg

=VLOOKUP(G1,A1:F10,3)&" "&VLOOKUP(G1,A1:F10,4)

etc
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
{=VLOOKUP(G1,A1:F10,{2,3,4,5,6},0)}

You'll want to select 5 adjacent cells on a single row when entering this formula.

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For more on array formulas see the Excel Help topic for "About array formulas and how to enter them".
 

tbird

Board Regular
Joined
Oct 21, 2002
Messages
184
Thanks to both Mark & Andrew. Mark, your formula gives me just what I wanted. I can see I need to do some reading up on array formulas! Thanks again.
 

Forum statistics

Threads
1,143,615
Messages
5,719,728
Members
422,242
Latest member
hishamkhatri

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
Top