+ Reply to Thread
Results 1 to 4 of 4

Auto generate unique ID

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    Southern Cali
    MS-Off Ver
    2016
    Posts
    2

    Auto generate unique ID

    Greetings All,

    I am new to the forum and hope to learn new things from everyone and also seek assistance.

    Take for instance, I have an ID column that I would like Excel to auto-generate a unique ID (CR0000 and so forth) when a user enters new data. If there is no new data, leave the row as blank. How do I go about in doing so?

    Thank you in advance for your assistance!
    Last edited by R3d3mpt10n; 10-22-2019 at 01:27 PM. Reason: grammar

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Auto generate unique ID

    Assuming data is entered in B column.

    Ex: In A2 & copy down.
    =IF(B2="","","CR"&Text(Row()-1,"0000"))
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    10-22-2019
    Location
    Southern Cali
    MS-Off Ver
    2016
    Posts
    2

    Re: Auto generate unique ID

    Thank you CK76. How do I hide the auto ID number until a user enters new data? or is it even possible?

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Auto generate unique ID

    Hmm? If function does that.

    Set B2 to which ever column that the user will update. If reference cell is blank, it will show blank. If value is entered in the cell, it will show generated ID.

    However, note that since it's formula based. You can't sort the data or ID will not match the original item it was associated with.

    Data entry sheet should be separated from down stream processing.

    There are other alternatives, but which method to use will largely depend on your use case.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to Generate Unique ID
    By matt85webb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2018, 10:42 AM
  2. Generate Unique ID
    By N323100 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-26-2017, 05:44 AM
  3. Replies: 0
    Last Post: 02-16-2016, 10:26 AM
  4. How to auto generate Data from one Workbook to another? Unique Identifier?
    By noremac14 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 09:35 AM
  5. [SOLVED] I have a workbook that I need to auto generate a unique daily 6 digit key number at the pr
    By harry h in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-16-2014, 07:48 AM
  6. Replies: 0
    Last Post: 02-12-2014, 08:22 AM
  7. Auto Generate a Unique Identifier
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2012, 10:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1