Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LookUp with Mulitple Criteria


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 |
+-------------------------------------------------------------------+

--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=560850

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default LookUp with Mulitple Criteria

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

"TimR" wrote:


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 |
+-------------------------------------------------------------------+

--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=560850


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default LookUp with Mulitple Criteria

.....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

"Toppers" wrote:

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

"TimR" wrote:


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 |
+-------------------------------------------------------------------+

--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=560850


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LookUp with Mulitple Criteria


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?


--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=560850

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default LookUp with Mulitple Criteria


Thanks Toppers!

My error. I added another criteria. Thanks for your help


--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=560850

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
Return single value on multipl criteria lookup maplesugarsnow Excel Worksheet Functions 3 July 1st 06 01:03 PM
Lookup Multiple Criteria return One answer cbanks Excel Worksheet Functions 3 January 26th 06 08:00 PM
Multiple criteria LOOKUP Leon Excel Worksheet Functions 2 December 22nd 05 01:13 PM
Lookup: 2 criteria maca Excel Discussion (Misc queries) 1 August 2nd 05 04:55 PM
Conditional Lookup on Multiple Criteria TBarker Excel Worksheet Functions 1 June 22nd 05 12:28 AM


All times are GMT +1. The time now is 05:24 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"