Index Match only returns first match

leighnea

New Member
Joined
Jul 25, 2009
Messages
22
Office Version
  1. 365
Platform
  1. Windows
=SMALL(INDEX(detail_check_payment!$A$7:$AA$358,MATCH("S&P ",detail_check_payment!$AA$7:$AA$358,0),1),ROWS(AA7:AA7))

When I use the formula above it only returns the first value that matches and I need it to return a list of all that match.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:
=INDEX(detail_check_payment!$A$7:$AA$358,AGGREGATE(15,6,(ROW(detail_check_payment!$A$7:$AA$358)-ROW(detail_check_payment!$A$7)+1)/(detail_check_payment!$A$7:$AA$358="S&P"),ROWS($AA$7:AA7)))

Or if you have Excel 365
=FILTER(detail_check_payment!$A$7:$AA$358,detail_check_payment!$A$7:$AA$358="S&P")
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Try:
=INDEX(detail_check_payment!$A$7:$AA$358,AGGREGATE(15,6,(ROW(detail_check_payment!$A$7:$AA$358)-ROW(detail_check_payment!$A$7)+1)/(detail_check_payment!$A$7:$AA$358="S&P"),ROWS($AA$7:AA7)))

Or if you have Excel 365
=FILTER(detail_check_payment!$A$7:$AA$358,detail_check_payment!$A$7:$AA$358="S&P")
I tried both -
the =index gave me a #NUM! result
the =filter gave me a #VALUE!
 
Upvote 0
There is a typo in the filter formula, it should be
Excel Formula:
=FILTER(detail_check_payment!$A$7:$AA$358,detail_check_payment!$AA$7:$AA$358="S&P")
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thank you I updated it.
 
Upvote 0
Did @Fluff change in the FILTER function work for you? I just noticed in your formula it looks like you have a space after the S&P ("S&P "). If so you need the change the formula to show the space.
 
Upvote 0
It is working!! Thank you.

This was my final formula. =FILTER(detail_check_payment!$A$7:$A$358,detail_check_payment!$AA$7:$AA$358="S&P ")
 
Upvote 0
Glad it's sorted & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top