+ Reply to Thread
Results 1 to 3 of 3

Assigning Unique ID

  1. #1
    Registered User
    Join Date
    02-26-2010
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    55

    Assigning Unique ID

    Hi All-

    I have a 13k row spreadsheet that I need to assign a unique ID to each client to import into a database. There are many repeat clients in the spreadsheet that need to have the same ID. The only fields in the spreadsheet are first name, last name, address1, address2, city, state, zip, phone#, fax#. Does anyone know a way that I assign a unique ID to the client based on the fields I have available to identify each unique client.

    Thanks in advance

    ClikClak
    Last edited by NBVC; 04-28-2010 at 10:09 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Assigning Unique ID

    If you can sort list so that all like items are together, then assuming you are only interested in Last Name and First Names for uniquess..

    And Assuming your data is columns A to F

    Then in G2...

    =IF(A2&B2=A1&B1,G1,G1+1)

    copied down

    you can add more to the concatenations if more columns are needed to determine uniqueness..but the like rows are to be grouped together.

    Also if you need to put letters in front or behind each code, then just concatenate to the formula

    e.g. ="CUS"&IF(A2&B2=A1&B1,G1,G1+1)

    or

    =TEXT(IF(A2&B2=A1&B1,G1,G1+1),"0000") if you need to product 4 digits codes,
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-26-2010
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: Assigning Unique ID

    That worked perfectly

    Thanks so much. I'm glad I stopped doing it manually at 50 and asked the question.

    Thanks again,

    ClikClak

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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