Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

returning more columns with vlookup?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eglea - 08 Mar 2008 14:59 GMT
Hi all

by default vlookup returns 1 column. Is there a way to return more than
1 (not necessarily adjacent) columns?

example

instead of

=VLOOKUP(38, A2:L10, 3, FALSE)

using something like

=VLOOKUP(38, A2:L10, (3,7,9), FALSE)

that would return cells in columns 3, 7 and 9 ?

Thanks!
Niek Otten - 08 Mar 2008 15:54 GMT
Maybe not exactly what you require, but it might help you:

http://www.cpearson.com/excel/TablesAndLookups.aspx

Look under the heading "Returning A Row Or Column From A Table"

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hi all
|
[quoted text clipped - 14 lines]
|
| Thanks!
L. Howard Kittle - 08 Mar 2008 20:50 GMT
Hi eflea,

Try this.  If you are going to return 5 columns, select five cells in a row
and while selected enter this formula.  The formula will only be in the left
most cell to start with.

=VLOOKUP(A1,B1:K15,{2,4,6,8,10},0)

Now hit Ctrl + Shift + Enter.

Looks up the value in A1 and returns five column (of your choice) in the
cells selected.  If you modify the formula you must select all cells that
have the formula and make the changes and Array Enter again.
(Ctrl+Shift+Enter)

HTH
Regards,
Howard

> Hi all
>
[quoted text clipped - 14 lines]
>
> Thanks!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.