Index/Match and Array help

wbm4x5220

New Member
Joined
Oct 3, 2014
Messages
4
I'm trying to use Index/Match to produce an array that will show which values in ColA match a specific case in ColB. Below is a simple table. I'm looking to get an array with the values in ColA that match TRUE in ColB (3; 6; 7)

The formula I've been using only returns an array with the value of the first TRUE (3; 3; 3 etc.).

{=INDEX(A1:B10,MATCH(TRUE,A1:B10,0),1)}

Any help tweaking this would be appreciated.

1
2
3
TRUE
4
FALSE
5
6
TRUE
7
TRUE
8
FALSE
9
10

<tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Like this?

=IF(B1:B10=TRUE,A1:A10)

Your formula cant produce anything far as I can tell. The match part is invalid.
 
Upvote 0
I think you're looking for something like this

How To Return Multiple Match Values in Excel Using INDEX-MATCH or VLOOKUP


Excel 2010
ABCDE
113TRUE
226
3TRUE37
4FALSE4
55
6TRUE6
7TRUE7
8FALSE8
99
1010
Sheet1
Cell Formulas
RangeFormula
D1{=IF(ISERROR(INDEX($A$1:$B$10,SMALL(IF($A$1:$A$10=$E$1,ROW($A$1:$A$10)),ROW(1:1)),2)),"",INDEX($A$1:$B$10,SMALL(IF($A$1:$A$10=$E$1,ROW($A$1:$A$10)),ROW(1:1)),2))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Try to add a few rows in front of the current row 1, do we still get correct answers?
 
Last edited:
Upvote 0
Try to add a few rows in front of the current row 1, do we still get correct answers?

When I did that, it matched on the value in the cell down however many rows were inserted. So I added -x to the end of the array formula, where x = the number of inserted rows. That brought the formula result back to the correct start point.
 
Upvote 0
When I did that, it matched on the value in the cell down however many rows were inserted. So I added -x to the end of the array formula, where x = the number of inserted rows. That brought the formula result back to the correct start point.

That's not the way we should cope with such eventuality.

Rather: In D1 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$1:$B$10,SMALL(IF($A$1:$A$10=$E$1,ROW($B$1:$B$10)-ROW($B$1)+1),ROWS($D$1:D1))),"")
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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