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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
You could concatenate the result of several look ups, eg

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

etc
 
Upvote 0
{=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".
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,388
Messages
6,119,226
Members
448,878
Latest member
Da9l87

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