#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default INDEX and MATCH

Hi guys, I am currently using the below formula that returns certain data
from a report ( multiple rows and columns ) and it's based on a product name.
What I would like to do is have the formula return data based on two things,
product name and product type but not sure it can be done with INDEX and
MATCH .... the data is returned based on B4 ( product name in that cell ) in
the below example ,,,, Commodities is my sheet tab name, I would like to have
the data returned based on B4 and D4 ( product name and product type ).

=IF(ISERROR(SMALL(Commodities!$L:$L,ROWS($B$4:B4)) ),"",
INDEX(Commodities!N:N,MATCH(SMALL(Commodities!$L:$ L,
ROWS($B$4:B4)),Commodities!$L:$L,0)))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default INDEX and MATCH

John Moore wrote:
Hi guys, I am currently using the below formula that returns certain data
from a report ( multiple rows and columns ) and it's based on a product name.
What I would like to do is have the formula return data based on two things,
product name and product type but not sure it can be done with INDEX and
MATCH .... the data is returned based on B4 ( product name in that cell ) in
the below example ,,,, Commodities is my sheet tab name, I would like to have
the data returned based on B4 and D4 ( product name and product type ).

=IF(ISERROR(SMALL(Commodities!$L:$L,ROWS($B$4:B4)) ),"",
INDEX(Commodities!N:N,MATCH(SMALL(Commodities!$L:$ L,
ROWS($B$4:B4)),Commodities!$L:$L,0)))


Hi John,

For my money I prefer SUMPRODUCT for multiple condition lookups. This
site gives an outstanding explanation of the technique:

http://xldynamic.com/source/xld.SUMPRODUCT.html

If you want to see an INDEX/MATCH solution check this site. It also
shows a method using SUMPRODUCT:

http://blog.livedoor.jp/andrewe/archives/7336895.html

Let us know if you get stuck.
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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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