Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Vlookup in multiple columns

I am trying to write a vlookup that looks in more than one column for the
data, is this possible?


Col a Col b Col c col d
1 a 1 a
2 b
3 c
4 d

How do I get a vlookup or other function to find the "2"?

=vlookup(a10,a1:b4;c1:d4,2,false) where a10=2 doesn't work.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Vlookup in multiple columns

In article ,
Iriemon wrote:

I am trying to write a vlookup that looks in more than one column for the
data, is this possible?


Col a Col b Col c col d
1 a 1 a
2 b
3 c
4 d

How do I get a vlookup or other function to find the "2"?

=vlookup(a10,a1:b4;c1:d4,2,false) where a10=2 doesn't work.


Is this what you mean?

=VLOOKUP(A10,IF(ISNUMBER(MATCH(A10,A1:A4,0)),A1:B4 ,C1:D4),2,FALSE)

--
Domenic
http://www.xl-central.com
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Vlookup in multiple columns

Works perfectly!

Thanks

Irie !!

"Domenic" wrote:

In article ,
Iriemon wrote:

I am trying to write a vlookup that looks in more than one column for the
data, is this possible?


Col a Col b Col c col d
1 a 1 a
2 b
3 c
4 d

How do I get a vlookup or other function to find the "2"?

=vlookup(a10,a1:b4;c1:d4,2,false) where a10=2 doesn't work.


Is this what you mean?

=VLOOKUP(A10,IF(ISNUMBER(MATCH(A10,A1:A4,0)),A1:B4 ,C1:D4),2,FALSE)

--
Domenic
http://www.xl-central.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP on multiple columns David Ingham Excel Discussion (Misc queries) 1 July 4th 08 01:55 AM
VLOOKUP, IF and multiple columns AndrΓ© Francoeur Excel Discussion (Misc queries) 3 April 9th 06 01:05 AM
vlookup for multiple columns JR Excel Worksheet Functions 1 February 6th 06 03:51 PM
VLOOKUP and multiple columns Dan Belcher Excel Discussion (Misc queries) 6 September 17th 05 11:47 AM
vlookup for multiple columns MXC Excel Worksheet Functions 6 March 4th 05 09:59 PM


All times are GMT +1. The time now is 02:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"