Create Autonumber Unique Column in SharePoint List

Requirement: Implement automatic numbering in the SharePoint list.

How to create an auto-incrementing number field in a SharePoint list?

Auto-numbering is quite a common requirement when working with SharePoint lists. Say, You may want to auto number list items in SharePoint 2010 issue tracking list! Here are some methods to achieve SharePoint list auto-increment number:

Add Auto number column to list with ID field:
SharePoint Lists have a built-in “ID” column which auto increments. You can simply add this column to your views!

sharepoint add autonumber to list

You can rename the ID column if required: How to rename the ID field in SharePoint list?

Using calculated field for Autonumber?
Tried using a calculated column with ID field, entered formula such as = CONCATENATE(“CR-” [ID]), But no luck – Doesn’t work for new items! Because the ID field is filled ONLY after the item is created!

SharePoint Autonumber with Workflows:
Here is my solution to set auto-increment numbers with SharePoint designer workflow! Just follow these steps:

  • Create a column, say Request Number of the appropriate type. Make this column hidden: How to make a SharePoint list column hidden?
  • Open SharePoint Designer, create new list workflow.
  • Add a workflow action: “Update list Item” >> Current Item >> Add >> Set this field to your Target field (Change Request No.), Set value from Current Item:ID field. sharepoint add autonumber to list
  • Set the workflow start option to “Start Workflow automatically when an item is created”
  • Save and Publish the workflow.

You can also have an Event receiver to set the Autonumber field value programmatically!

Create auto number in SharePoint 2013 with “Counter” list approach:
The idea is to create another list, say “Counter,” with a field to hold your initial counter value. Create a workflow to fetch the counter value and update your base list’s “Auto-number” field. Let the same workflow increment the counter list’s counter field value! Here is my SharePoint designer 2013 autonumber workflow SharePoint Online: Create Unique Auto Increment Column using SharePoint Designer Workflow

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

5 thoughts on “Create Autonumber Unique Column in SharePoint List

  • I’m using the unique system ID and it shows on the main list, however when I click on an item in the list that field is not displayed on the item when fully open. Is there a way to make it visible when opened individually as a list item rather than just in the list in it’s entirety?

    Reply
  • here is what i used to create an autonumber:
    =CONCATENATE(“INT-“,ROUND(SUM(NOW()+MINUTE(NOW())),-2))

    Reply
  • How do you handle the view sorting? For example, my ascending view shows 2020-1 as the first item and then 2020-10 as the second item.

    Reply
    • That’s because of the column type! Create a Number column instead of “Single Line of Text” to fix the sorting!

      Reply
    • Try to set the Number with two digits by adding leading ‘0’ to it. =IF(ID<10,CONCATENATE("2020-0",[ID]),CONCATENATE("2020-",[ID]))

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *