Hi Everyone, Would you be able to help me create a formula that will allow me to return multiple results, but then display the cell reference of each result
I tried to use INDEX MATCH but it will only display the first match that it finds then return the cell reference of the match, this is the formula that I have got at the moment.
=CELL("address",INDEX($H5:$XFD5,MATCH("*"&$I$1&"*",$H5:$XFD5,0)))
The Issue is that I have multiple cells that match the criteria that I am searching and I need to highlight all the cells within that row that match this.
I have tried to use INDEX SMALL COLUMN functions combined but have had no luck.
=IF(COLUMNS($A4:A4)>$F4,"",INDEX($G4:$DC4,SMALL(IF($G4:$DC4=$I$1,COLUMN($G4:$DC4)-COLUMN($G4)+1),COLUMNS($A4:A4))))
But I have had no luck achieving this
Below is a small example of the data that I am working with
First of all, I am doing a count formula to count the number of time the search criteria appears in the data so that I know how many columns I need.
In the below example there are 2 matches, hence only 2 columns, in the real example there might be 10+
Then in Cell "A3" I need the formula to pull out the first match and returns the cell reference and "B3" to show the second match etc.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Search Criteria[/TD]
[TD]1617940987[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cell Ref1[/TD]
[TD]Cell Ref 2[/TD]
[TD]Count If Formula[/TD]
[TD]Number 1[/TD]
[TD]Number 2[/TD]
[TD]Number 3[/TD]
[TD]Number 4[/TD]
[TD]Number 5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]=COUNTIF($D5:$H2,"*"&$E$1&"*")[/TD]
[TD]79081617940987[/TD]
[TD]10298764[/TD]
[TD]1235333[/TD]
[TD]01617940987123[/TD]
[TD]1245632[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if this is possible.
If you need any further details I am happy to explain further,
Thank You In advance.
I tried to use INDEX MATCH but it will only display the first match that it finds then return the cell reference of the match, this is the formula that I have got at the moment.
=CELL("address",INDEX($H5:$XFD5,MATCH("*"&$I$1&"*",$H5:$XFD5,0)))
The Issue is that I have multiple cells that match the criteria that I am searching and I need to highlight all the cells within that row that match this.
I have tried to use INDEX SMALL COLUMN functions combined but have had no luck.
=IF(COLUMNS($A4:A4)>$F4,"",INDEX($G4:$DC4,SMALL(IF($G4:$DC4=$I$1,COLUMN($G4:$DC4)-COLUMN($G4)+1),COLUMNS($A4:A4))))
But I have had no luck achieving this
Below is a small example of the data that I am working with
First of all, I am doing a count formula to count the number of time the search criteria appears in the data so that I know how many columns I need.
In the below example there are 2 matches, hence only 2 columns, in the real example there might be 10+
Then in Cell "A3" I need the formula to pull out the first match and returns the cell reference and "B3" to show the second match etc.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Search Criteria[/TD]
[TD]1617940987[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Cell Ref1[/TD]
[TD]Cell Ref 2[/TD]
[TD]Count If Formula[/TD]
[TD]Number 1[/TD]
[TD]Number 2[/TD]
[TD]Number 3[/TD]
[TD]Number 4[/TD]
[TD]Number 5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD]=COUNTIF($D5:$H2,"*"&$E$1&"*")[/TD]
[TD]79081617940987[/TD]
[TD]10298764[/TD]
[TD]1235333[/TD]
[TD]01617940987123[/TD]
[TD]1245632[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if this is possible.
If you need any further details I am happy to explain further,
Thank You In advance.