Forum Discussion

Aditya Jadhav's avatar
Aditya Jadhav
Brass Contributor
Nov 20, 2021
Solved

Creating Unique Id for a dataset

Hi, Have a list of villages and want to create a Id for each village stating the number for that village. Want to give numbers which go on increasing till the village changes and again start to give...
  • SergeiBaklan's avatar
    Nov 20, 2021

    Aditya Jadhav 

    For that formula could be

     

    =LEFT(A2,4) & "-" & COUNTIF($A$2:A2,A2)

     

    select the range and Ctrl+D it down.

     

    However, first 4 letter could be the same for different locations, perhaps more letter to take for ID.

Resources