LookUp with Mulitple Criteria

T

TimR

I am trying to look up values based on three criteria Area, Item Number
and Year.

The data is organized in 18 columns (Area, Item, Year (3 others not
relevent) and then 12 Months) and 200 + rows (which can grow each
month) the rows can be different years but same Item and Area.

I want to pull out the numbers from 2006 only.

I have tried;
=IF((AND($A11=$B$4,$G11=2006)),VLOOKUP($U2,$C$14:$S$23,6,FALSE),0)
-references are not correct if looking at attachment-
and Index Match function as an array and can't get it to work.

I could just delete 2005 data but the raw data comes formatted the same
every month.

A slice of the data is attached.

Any help would be apprciated.


+-------------------------------------------------------------------+
|Filename: MulitLookExamp.zip |
|Download: http://www.excelforum.com/attachment.php?postid=5020 |
+-------------------------------------------------------------------+
 
G

Guest

Try entered with Ctrl-Shift-Enter:

=INDEX($G$4:$R$13,MATCH(1,($D$4:$D$13=$D16)*($F$4:$F$13=2006),0),MONTH(S15))

You may need to change $D16 and 2006 to reference your "Correct" cells but
this gives correct reults for Jan, Feb, Mar etc(copy along).

HTH
 
G

Guest

.....better ...

=INDEX($G$4:$R$13,MATCH(1,($D$4:$D$13=$D16)*($F$4:$F$13=YEAR(R$15)),0),MONTH(R$15))

Entered as before with Control-Shift-Enter
 
T

TimR

How would I add a third (or 4th) critera I also need to be specific with
which area the item was associated with I tried;
=INDEX($G$4:$R$13,MATCH(1,($D$4:$D$13=$D16)*($F$4:
$F$13=YEAR(R$15)),0),MONTH(R$15)*($A$:A$13="Etch Strip"))

Then changing the value in A5 and the result didn't change?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top