+ Reply to Thread
Results 1 to 4 of 4

Creating a unique ID using the Concatenate function

  1. #1
    Registered User
    Join Date
    10-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    78

    Creating a unique ID using the Concatenate function

    I need to create unique IDs for all of my stock. I would like to use the concatenate function so that the first letter of each products type is taken and then joined onto a unique number. Im not sure how I will do this I was thinking that the formula looks at the largest value and adds 1 so that there are no duplicate numbers added to the first letter of the product type. E.g. the first mother board added will be "M1" the next will be "M2" as the formula has found that M1 exists and has added 1. If someone could help with this i would be very grateful thank you.

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Creating a unique ID using the Concatenate function

    sounds simple enough, but we'd need to know a bit more info

    your product codes are not going to be simplified down to just one character, e.g. your mother board will be M1, yes 'mother board' begins with 'M', but so does memory and mice

    there is no problem with achieving what you want, apart from where you said -> "so that there are no duplicate numbers added to the first letter of the product type. "

    you'll need an established list of product codes

    sorry you didn't get the answer you were wanting, but I hope you understand that for us to be able to give you a solution that works for you, we'd need more detailed info of how you currently list your stock

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Creating a unique ID using the Concatenate function

    If your data starts in E1, in E2, copied down, use this...
    ="M"&--MID(E1,2,9999)+1
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: Creating a unique ID using the Concatenate function

    Yeah I was just trying to use "M" for motherboard as an example but it would be great if the formula could take the M from mother and the B from board if that it possible. Also I was hoping that instead of an established list the formula used would look at the largest number used and then add 1 so that their will never be a duplicate number. If it is easier it can be more than 1 formula so that the unique number is worked out in a cell then in the product ID cells a formula such as
    Please Login or Register  to view this content.

+ 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. [SOLVED] Concatenate Unique Values
    By shdwfx in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-21-2014, 09:39 AM
  2. Looking for a macro or function to concatenate every unique combination
    By centralcb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2012, 05:10 PM
  3. Unique Concatenate
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 11-15-2011, 04:25 PM
  4. unique CONCATENATE
    By ccsmith in forum Excel General
    Replies: 2
    Last Post: 07-30-2010, 03:27 AM
  5. Replies: 2
    Last Post: 04-12-2010, 12:35 PM

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