Help with an Index Match formula with multiple criteria AND requiring multiple results

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
893
Office Version
  1. 365
Platform
  1. Windows
I have this formula:

{=INDEX(CAPA!A:A,MATCH(1,(B17=CAPA!V:V)*(Dashboard!W1=CAPA!D:D),0))}

And what it does is it performs an index match with multiple criteria:
if the value in Column V (on sheet CAPA) matches B17 AND
if the value in column D (on sheet CAPA) matches W1 (on sheet Dashboard)
It will return the value in column AA (from sheet CAPA)

Now it will return the first match value, example: Blue 892

However I would like it to return ALL matches in Joint text: Blue 892, Green 596, Yellow 555 etc.

Is this possible?

Thank you to anyone who can help


Carla
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hey there,

Is this something you're looking for?

Book1
ABCDEF
1blue 892flagother flagflagblue 892, green 596, yellow 555
2green 596flagother flagother flag
3red 88no flagno flag
4yellow 555flagother flag
Sheet1
Cell Formulas
RangeFormula
F1F1=TEXTJOIN(", ",TRUE,INDEX($A$1:$A$4,SMALL(IF($B$1:$B$4=$E$1,IF($C$1:$C$4=$E$2,ROW($A$1:$A$4))),ROW(INDIRECT("$1:$"&SUMPRODUCT((B1:B4=E1)*(C1:C4=E2)))))))


You'll need to change the criteria parts however, I used E1 and E2 in the example as criteria 1 & 2
 
Upvote 0
The formula did not work.
I changed the criteria in your formula to reference the cells I needed referenced, however it gave me all of the data in Column A.

=TEXTJOIN(", ",TRUE,INDEX(CAPA!A:A,SMALL(IF(CAPA!V:V=B17,IF(CAPA!D:D=Dashboard!W1,ROW(CAPA!A:A))),ROW(INDIRECT("$1:$"&SUMPRODUCT((CAPA!V:V=B17)*( CAPA!D:D=Dashboard!W1)))))))

I also recreated your spreadsheet and used the exact formula you provided and only got a result of blue 892
1585578688499.png
 
Upvote 0
Fluff yours works perfectly.

Thank you both for your help ?
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
I also recreated your spreadsheet and used the exact formula you provided and only got a result of blue 892
You don't actually need to to that, one of the beauties about the XL2BB add-in is you can click the copy icon
1585579232591.png

and then just paste it into Excel. :)
It's one of the reasons we ask people to use it.
 
Upvote 0
Hey, apologies that my solution did not work, I think it is because of the office version difference :(
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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