View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Lookup with multiple conditions

Hi!

One way:

=INDEX(Z1:Z100,MATCH(1,(W1:W100="whatever")*(X1:X1 00="whatever")*(Y1:Y100="whatever"),0))

This is an array formula and must be entered using the key combo of
CTRL,SHIFT,ENTER.

Replace "whatever" with the appropriate variable criteria.

Text variables must be enclosed in quotes: "whatever"
Number variables should not be enclosed in quotes: 10

Better if you use cells to hold the criteria and then refer to those cells:

=INDEX(Z1:Z100,MATCH(1,(W1:W100=AA1)*(X1:X100=AA2) *(Y1:Y100=AA3),0))

Biff

"Svenvlad" wrote in
message ...

G'day all,

I was just wondering if there was a way to return a value from a data
table by specifying *3* conditions to be met.

Eg. My data table is in cells W1:Z100
(Column names = Track, Distance, Class, Time)

I want to be able to return the time value, based on track, distance
and class values.

Thanks in advance,

Sven


--
Svenvlad
------------------------------------------------------------------------
Svenvlad's Profile:
http://www.excelforum.com/member.php...o&userid=28916
View this thread: http://www.excelforum.com/showthread...hreadid=490493