+ Reply to Thread
Results 1 to 3 of 3

adding unique number suffix

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    atlanta
    MS-Off Ver
    Excel 2007
    Posts
    61

    Angry adding unique number suffix

    hi, someone helped me earlier but now i have a new problem.
    i need to make unique skus from col B. so i asked for a suffix to be added to main item number of column B, like 18-1, 18-2, 18-2, etc.
    you'll notice in column C, there is 18-3, 18-4. for reasons unknown, i can't wipe out column c and start over using this code provided earlier for sequential numbering of each set of numbers in column B [=B2 & -COUNTIF(B$1:B2, B2)]

    so, my question is, how can i leave column C intact, but for each set of numbers, add a random number to make a unique sku, IF there's not already one there in column C. also, the prefix must be column B. So, column c1 can be 18-1, c2 can be 18-2, c5 should be 19-1, etc.


    thanks so much!bummer.xlsx



    6893 18 Pink 0 0 Out of Stock
    6894 18 Silver 1 0 In Stock
    6895 18 18-3 Aqua 0 0 Out of Stock
    6896 18 18-4 Purple 0 0 Out of Stock
    6897 19 Black 8 0 In Stock
    6898 41 Black 0 0 Out of Stock
    6899 45 Tan Stripe 0 0 Out of Stock
    6900 45 45-2 Gold Stripe 0 0 Out of Stock
    6901 45 45-5 White Spot 0 0 Out of Stock

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,227

    Re: adding unique number suffix

    Hi hmm321,

    See if the attached formula in Column C helps. I'm concerned that resorting your data will change Col C answer. If you do it once and the copy and paste values only (over the top of Col C formulas) it might be just what you need.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    atlanta
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: adding unique number suffix

    this worked great. thanks!

+ 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