Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Obtaining Multiple Results Using Index/Match Functions

I have a small table similar to the following:
Color Object
A B
1 Green Apple
2 Yellow Banana
3 Red Stop Sign
4 Green Grass

=INDEX(A1:B4,MATCH("Green",A1:A4,0),2) -- (Apple)
INDEX/MATCH formula works perfectly to obtain the first matching record, but
how can I create a list (each matching item in its own cell in a column) of
all matching records, ie all objects that are Green. Is there some sort of
Exclude function that will allow me to use the same formula without producing
the same result as the cell above it? A Pivot Table is overkill for what I
am trying to do.
--
Archie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Obtaining Multiple Results Using Index/Match Functions

=IF(ROWS($1:1)<=COUNTIF(Color,A$1),INDEX(Type,SMAL L(IF(Color=A$1,ROW(Color)-MIN(ROW(Color))+1),ROWS($1:1))),"")

Biff

"Teethless mama" wrote in message
...
I'm not sure what you are after. Here is my guest

Assuming your data in A1:B4 in Sheet 1
A1:A4 (define name "Color")
B1:B3 (define name "Type") of course no quote

In Sheet2
A1: hold Green

B1:
=IF(ISERR(SMALL(IF(Color=Sheet2!$A$1,ROW(INDIRECT( "1:"&ROWS(Color)))),ROWS($1:1))),"",INDEX(Type,SMA LL(IF(Color=Sheet2!$A$1,ROW(INDIRECT("1:"&ROWS(Col or)))),ROWS($1:1))))

ctrl+shift+enter, not just enter
Drag Fill Handle to copy down from B1 as far as required



"Archie999" wrote:

My source table is actually in a separate worksheet and I am using a
named
cell to populate the Match criteria, so a sort of form. AutoFilter would
still be a bit complicated due to the number of unique "categories"
assorted
with Column A - Colors.
--
Archie


"Teethless mama" wrote:

How about Auto Filter


"Archie999" wrote:

I have a small table similar to the following:
Color Object
A B
1 Green Apple
2 Yellow Banana
3 Red Stop Sign
4 Green Grass

=INDEX(A1:B4,MATCH("Green",A1:A4,0),2) -- (Apple)
INDEX/MATCH formula works perfectly to obtain the first matching
record, but
how can I create a list (each matching item in its own cell in a
column) of
all matching records, ie all objects that are Green. Is there some
sort of
Exclude function that will allow me to use the same formula without
producing
the same result as the cell above it? A Pivot Table is overkill for
what I
am trying to do.
--
Archie



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
Obtaining Multiple Results Using Index/Match Functions Teethless mama Excel Worksheet Functions 0 March 3rd 07 03:16 AM
Obtaining Multiple Results Using Index/Match Functions Archie999 Excel Worksheet Functions 1 March 3rd 07 03:14 AM
Index and Match results Mick Excel Worksheet Functions 4 December 21st 06 11:51 PM
Index and Match Functions Damien Excel Worksheet Functions 4 July 29th 06 10:12 PM
How do I use the Match and Index functions to look up a value tha. Maclanders Excel Worksheet Functions 7 February 10th 05 08:31 PM


All times are GMT +1. The time now is 05:44 AM.

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"