I find the instance number of a data entry by using:
=countif(C$2:C2,C2)
When filled down, this formula displays the number of times C2,C3,C4,etc. occurs above it, thus giving its "instance number".
I would like to convert this to an array formula (to avoid the need to fill down) but,
=arrayformula(countif(C$2:C2,C2:C))
does not work. I am unsure how to convert the range argument of countif to comply with the arrayformula while keeping this range dynamic.
Example sheet: https://docs.google.com/spreadsheets/d/1cApbO2HdeiaJd7yEkS1oFzxEG5wuM2XHLU7CK_OqRCA/edit#gid=0