#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sjl
 
Posts: n/a
Default look up a value


A B C D E
1 3 6 9 12
2 5 SAM
3 10
4 15
4 20

How do I search for the intersection of "5" and "9" to get "SAM". I cannot
use a vlookup because the column i am searching changes.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default look up a value

http://www.contextures.com/xlFunctio...ml#IndexMatch3


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"sjl" wrote in message
...

A B C D E
1 3 6 9 12
2 5 SAM
3 10
4 15
4 20

How do I search for the intersection of "5" and "9" to get "SAM". I
cannot
use a vlookup because the column i am searching changes.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default look up a value

Hi,

Try the following index and match formula

=index(A1:E5,match(C1,A1:E1,0),match(A2,A1:A5,0))

Regards,

"sjl" wrote:


A B C D E
1 3 6 9 12
2 5 SAM
3 10
4 15
4 20

How do I search for the intersection of "5" and "9" to get "SAM". I cannot
use a vlookup because the column i am searching changes.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sjl
 
Posts: n/a
Default look up a value

Thanks, i've got it working now.
sjl

"Peo Sjoblom" wrote:

http://www.contextures.com/xlFunctio...ml#IndexMatch3


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"sjl" wrote in message
...

A B C D E
1 3 6 9 12
2 5 SAM
3 10
4 15
4 20

How do I search for the intersection of "5" and "9" to get "SAM". I
cannot
use a vlookup because the column i am searching changes.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
sjl
 
Posts: n/a
Default look up a value

Works great, thank you.
sjl

"Ashish Mathur" wrote:

Hi,

Try the following index and match formula

=index(A1:E5,match(C1,A1:E1,0),match(A2,A1:A5,0))

Regards,

"sjl" wrote:


A B C D E
1 3 6 9 12
2 5 SAM
3 10
4 15
4 20

How do I search for the intersection of "5" and "9" to get "SAM". I cannot
use a vlookup because the column i am searching changes.

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



All times are GMT +1. The time now is 09:56 PM.

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"