• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

MATCH (multiple results)

Shahin Ghaffari

New Member
Hi

in the attachment, I used MATCH to find the row number of a special cell named "shahin" but there are a lot of "shahin" and MATCH only shows the FIRST row number. how can I show all the cell numbers that contains "shahin"?
 

Attachments

  • MATCH (multiple).xlsx
    8.2 KB · Views: 11
Alternative with a Power Query solution could be
Code:
let
  Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
  Column1 = Source[Column1],
  Custom1 = List.Transform(List.PositionOf(Column1, "shahin", Occurrence.All), each _ +1)
in
  Custom1

Requires List.Transform since Power Query is base 0 this starts counting at zero not one.
 
I am really looking forward to being able to deploy the new dynamic arrays!
= FILTER( list, ISTEXT(list) )
returns a filtered version of the list itself showing all text content.

Equivalently,
= FILTER( SEQUENCE(ROWS(list)), list="Shahin" )
will return the record numbers of the matched values.
 
Back
Top