Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Index and Match results

I have used the index / match formula similar to below but it only returns
the first instance of the match, is there a way of having all the items
listed in column A that matches the criteria rather than just the first one
it comes across.

Thoughts were that on a seperate worksheet I copied the formula down to row
100, each formula starting at the row number it was actually in, this would
give me a list that meets the criteria (with duplicate names) but how would
I copy this this back to my original worksheet without the duplicate names.

=INDEX(Sheet2!A1:A100,MATCH(1,(Sheet2!B1:B100"3") *(Sheet2!C1:C100=1234),0))

Many thanks
Mick



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Index and Match results

Try this *array* formula:

=INDEX(A$1:A$100,SMALL(IF((B$1:B$100"3")*(C$1:C$1 00=1234),ROW($1:$100)),ROWS($1:1)))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

*After* the CSE, copy down as needed ... more rows then you think you'll
need ... so that you don't run out of rows of formula before you run out of
data to be returned.

When you run out of data, you'll get the #NUM! error.

If the error message bothers you, you can try this, where the error trap
makes the formula kind of bigger:

=IF(ISERR(SMALL(IF((B$1:B$100"3")*(C$1:C$100=1234 ),ROW($1:$100)),ROWS($1:1))),"",INDEX(A$1:A$100,SM ALL(IF((B$1:B$100"3")*(C$1:C$100=1234),ROW($1:$10 0)),ROWS($1:1))))

This must *also* use CSE!

I eliminated your path to Sheet2 to make it shorter for my testing.

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Mick" wrote in message
...
I have used the index / match formula similar to below but it only returns
the first instance of the match, is there a way of having all the items
listed in column A that matches the criteria rather than just the first one
it comes across.

Thoughts were that on a seperate worksheet I copied the formula down to row
100, each formula starting at the row number it was actually in, this would
give me a list that meets the criteria (with duplicate names) but how would
I copy this this back to my original worksheet without the duplicate names.

=INDEX(Sheet2!A1:A100,MATCH(1,(Sheet2!B1:B100"3") *(Sheet2!C1:C100=1234),0))

Many thanks
Mick




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Index and Match results

BTW ... Are you *sure* that you want the quotes around that "3" ? ? ?
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"RagDyeR" wrote in message
...
Try this *array* formula:

=INDEX(A$1:A$100,SMALL(IF((B$1:B$100"3")*(C$1:C$1 00=1234),ROW($1:$100)),ROWS($1:1)))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

*After* the CSE, copy down as needed ... more rows then you think you'll
need ... so that you don't run out of rows of formula before you run out of
data to be returned.

When you run out of data, you'll get the #NUM! error.

If the error message bothers you, you can try this, where the error trap
makes the formula kind of bigger:

=IF(ISERR(SMALL(IF((B$1:B$100"3")*(C$1:C$100=1234 ),ROW($1:$100)),ROWS($1:1))),"",INDEX(A$1:A$100,SM ALL(IF((B$1:B$100"3")*(C$1:C$100=1234),ROW($1:$10 0)),ROWS($1:1))))

This must *also* use CSE!

I eliminated your path to Sheet2 to make it shorter for my testing.

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Mick" wrote in message
...
I have used the index / match formula similar to below but it only returns
the first instance of the match, is there a way of having all the items
listed in column A that matches the criteria rather than just the first one
it comes across.

Thoughts were that on a seperate worksheet I copied the formula down to row
100, each formula starting at the row number it was actually in, this would
give me a list that meets the criteria (with duplicate names) but how would
I copy this this back to my original worksheet without the duplicate names.

=INDEX(Sheet2!A1:A100,MATCH(1,(Sheet2!B1:B100"3") *(Sheet2!C1:C100=1234),0))

Many thanks
Mick





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Index and Match results

=IF(ISERR(SMALL(IF((Sheet2!$B$1:$B$1003)*(Sheet2! $C$1:$C$100=1234),ROW(INDIRECT("1:"&ROWS(Sheet2!$C $1:$C$100)))),ROWS($1:1))),"",INDEX(Sheet2!$A$1:$A $100,SMALL(IF((Sheet2!$B$1:$B$1003)*(Sheet2!$C$1: $C$100=1234),ROW(INDIRECT("1:"&ROWS(Sheet2!$C$1:$C $100)))),ROWS($1:1))))

ctrl+shift+enter (not just enter)
Copy down as far as needed


"Mick" wrote:

I have used the index / match formula similar to below but it only returns
the first instance of the match, is there a way of having all the items
listed in column A that matches the criteria rather than just the first one
it comes across.

Thoughts were that on a seperate worksheet I copied the formula down to row
100, each formula starting at the row number it was actually in, this would
give me a list that meets the criteria (with duplicate names) but how would
I copy this this back to my original worksheet without the duplicate names.

=INDEX(Sheet2!A1:A100,MATCH(1,(Sheet2!B1:B100"3") *(Sheet2!C1:C100=1234),0))

Many thanks
Mick




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Index and Match results

Many many thanks for your time and assistance to you both.
It worked well, I even added another criteria to the formula (but did not
chnage anything else ie row numbers) and that worked as well.

Thanks again
Mick

"Teethless mama" wrote in message
...
=IF(ISERR(SMALL(IF((Sheet2!$B$1:$B$1003)*(Sheet2! $C$1:$C$100=1234),ROW(INDIRECT("1:"&ROWS(Sheet2!$C $1:$C$100)))),ROWS($1:1))),"",INDEX(Sheet2!$A$1:$A $100,SMALL(IF((Sheet2!$B$1:$B$1003)*(Sheet2!$C$1: $C$100=1234),ROW(INDIRECT("1:"&ROWS(Sheet2!$C$1:$C $100)))),ROWS($1:1))))

ctrl+shift+enter (not just enter)
Copy down as far as needed


"Mick" wrote:

I have used the index / match formula similar to below but it only
returns
the first instance of the match, is there a way of having all the items
listed in column A that matches the criteria rather than just the first
one
it comes across.

Thoughts were that on a seperate worksheet I copied the formula down to
row
100, each formula starting at the row number it was actually in, this
would
give me a list that meets the criteria (with duplicate names) but how
would
I copy this this back to my original worksheet without the duplicate
names.

=INDEX(Sheet2!A1:A100,MATCH(1,(Sheet2!B1:B100"3") *(Sheet2!C1:C100=1234),0))

Many thanks
Mick








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
VB Macro for Match Index Anift Setting up and Configuration of Excel 0 December 21st 06 06:36 AM
Index and match Krish Excel Worksheet Functions 5 October 6th 06 10:24 PM
Match Index cjjoo Excel Worksheet Functions 3 October 25th 05 09:33 AM
Match or Index Question carl Excel Worksheet Functions 2 October 4th 05 09:11 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


All times are GMT +1. The time now is 05:04 PM.

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"