Creating a list with value indexes

Hi all, there is a need to create a list of indexes. Example: There is a list with values 21,22,23,27,21
And when searching for the value of 21, a list will be created where the indexes will be written where the sought number will be contained. Example: (1,5) How this can be done???

See here

1 Like

No, that’s not quite it or it doesn’t work that way. I don’t need a list of indexes with duplicates, I need to make a list of indexes from the values I’m looking for

I figured out the example you sent and had to change it and it worked but very hard