How to return all rows containing a certain value using excel formula
07:09 03 Jul 2017

I need an excel formula that will select all rows containing a certain keyword, and then either return a pivot table of these rows, or copy them to another sheet in the workbook. I cannot use VBA or a filter, it has to be done with excel functions. It would also be helpful if it could search across multiple sheets.

This is what I have so far

=INDEX($A$2:$B$29,SMALL(IF($B$2:$B$29=$G$2,ROW($B$2:$B$29)),ROW(1:1))-1,1)

But it only returns a single value from the rows that match, not entire rows, and not as a pivot table.

excel excel-formula