Search code examples
google-sheetsgoogle-sheets-formulaarray-formulas

ArrayFormula to give Fixed serial number to same name


I want to have an Arrayformula at A1 to produce this output:
enter image description here
I want to have a same serial number for same names, names would not be sorted & could repeat any number of time.

Google Sheet Link


Solution

  • Plz try:

    =ArrayFormula(iferror(match(B2:B,unique(B2:B),0)))