+ Reply to Thread
Results 1 to 9 of 9

Unique Identifier

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    19

    Unique Identifier

    I have 95 rows of data as follows:

    Mr/Ms., First Name, Middle Initial, Last name, Add1, Add2, City, State, Zip, Age. I would like to create a unique identifier ( 10 digit) for each that is not dependant on a any further calculation once established. If I choose to resort by last name, zip code, or city, the unique identifier MUST stay with the row assigned for confidential sales tracking purposes.

    Can this be done?

    Thank you in advance if it can.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Unique Identifier

    Why a ten digit identifier if only 95 rows? Why not just number them 1-95? Simpler is often the answer.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Unique Identifier

    Hi,

    It sounds like you will be creating a new 11th column for the unique ID. In which case as long as any sort includes all 11 columns then you will have no problems.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Unique Identifier

    One way:

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    1
    Sal
    First
    MI
    Last
    Add1
    Add2
    Cit
    ST
    Zip
    Age
    CRC
    2
    Mr Bob A Smith 1234 Main St #201 Dallas TX
    75240
    22
    4,203,160,230
    K2: =GetCRC32(Cat(A2:J2, "|")) + 2^32
    3
    Mr Bob B Smith 1234 Main St #201 Dallas TX
    75240
    22
    2,231,331,328
    4
    Mr Bob B Smith 1234 Main St #201 Dallas TX
    75240
    23
    4,093,139,606


    Please Login or Register  to view this content.
    Last edited by shg; 10-07-2014 at 07:42 PM.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    07-15-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    19

    Re: Unique Identifier

    Hello Alan, The marketing company between my data and the client wants a 10 digi number similar to a claim check # for anonymity. The more randomized the number, the better, in their way of thinking.

  6. #6
    Registered User
    Join Date
    07-15-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    19

    Re: Unique Identifier

    Hello Richard, I was thinking of doing a RANDBETWEEN but it recalculates on every sort.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Unique Identifier

    Quote Originally Posted by mussonip View Post
    Hello Richard, I was thinking of doing a RANDBETWEEN but it recalculates on every sort.
    ...Sorry, but what's the question?

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Unique Identifier

    Nice one SHG. I'll have to dissect it to see how it works.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Unique Identifier

    Thanks, CB.
    Last edited by shg; 10-07-2014 at 07:44 PM.

+ 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. Unique identifier for a row
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-12-2010, 11:52 PM
  2. [SOLVED] Need to automate unique identifier
    By MLK in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2006, 04:25 PM
  3. Unique identifier
    By Steve Barnett in forum Excel General
    Replies: 19
    Last Post: 01-06-2006, 07:30 AM
  4. [SOLVED] Unique identifier
    By Steve Barnett in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM
  5. Unique identifier
    By Steve Barnett in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-06-2006, 07:30 AM

Tags for this Thread

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