#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Lookup


Hi,
Is there a way to get data based on two variables? The data I want is
in an array format, so I am trying to get the value of a cell at the
intersection of two variables. Will I have to use Vlookup and Hlookup
in the same formula?


Thanks


--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=566540

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 137
Default Lookup

=INDEX(array,MATCH(x, col as range,0),MATCH(y, row as range,0))

"sanders" wrote:


Hi,
Is there a way to get data based on two variables? The data I want is
in an array format, so I am trying to get the value of a cell at the
intersection of two variables. Will I have to use Vlookup and Hlookup
in the same formula?


Thanks


--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=566540


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Lookup


Thanks for the help, it works fine. But, it turns out I need it to be a
little more complex. Can I add a third variable? The data is set out
like:


Y N
depA depB depC depD depA depB depC dep D
cat1
cat2
cat3


So far the formula selects the value at the intersection of dep and
cat. Can I add in a further bit where it will show the value of the
intersection of dep/cat IF they are in the Y bit?

Thanks again


--
sanders
------------------------------------------------------------------------
sanders's Profile: http://www.excelforum.com/member.php...o&userid=36745
View this thread: http://www.excelforum.com/showthread...hreadid=566540

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
Lookup function gives wrong values occasionally [email protected] Excel Discussion (Misc queries) 3 July 1st 06 12:58 AM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:12 PM.

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

About Us

"It's about Microsoft Excel"