+ Reply to Thread
Results 1 to 48 of 48

4 digit code for similar product, new product unique code

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    4 digit code for similar product, new product unique code

    In Column B I want to have unique 4 digit numbers for series of product related to Column A. Problem is, Column A may have 4 of the same product what would then make column B equal the same.

    Example.
    Col A, Col B
    Apple, 1001
    Apple, 1001
    Apple, 1001
    Orange, 9005
    Orange, 9005
    Banana, 2500
    Apple, 1001

    If someone tries to input a new fruit in Column A, example Pear, then I would like to be able to either choose or assign a new number that will not repeat with any of the other existing fruits.

    I don't want the new fruits to assign new codes in numeric value, ie 1001, 1002, 1003...rather choose from a random list from 1000 to 9999, example 1001, 2529, 6232, etc.

    Any creative way of doing this???

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Here's a quick and dirty method for doing this. Formulas in the yellow cells. Just copy down as need be.

    I'm sure there are tidier ways of doing the same...


    EDIT: Apologies, I didn't read the post fully. This method does the 1001, 1002, 1003 approach.
    It would probably be easier to set up a lookup table and manually allocate the code number to any new product and just have that feed in using VLOOKUP.
    Attached Files Attached Files
    Last edited by Spencer101; 05-25-2013 at 03:19 PM.
    If I've been of help, please hit the star

  3. #3
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Sweet, thanks for the quick reply!

    It works great! Any way to have the new number generated not go in numerical order but rather 1000-9999 number.

    Perhaps make the random list (may creative ways of doing this) in a new tab from Col A 1000 to 9999, then have the new numbers only allow selection of using one per product?

    Even if it just jumped up and down by 562's. I added +562 to the end of your formula. This works fine, but keeps jumping up in numbers. Perhaps when it hits 9999, it could start going back down the list of numbers again. I'd imagine this would create a fairly unique set of number?
    Last edited by unclejemima; 05-25-2013 at 03:27 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    See my edit above...

  5. #5
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    I have the IQ of rasinbran when it comes to excel Not to smart with anything more than simple formula's.

    For this to work, I'd have to know what the new codes were before I started. Not sure this will work as there are thousands of products that are added each time.

    Let me know and thanks for the advice!

  6. #6
    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: 4 digit code for similar product, new product unique code

    Why NOT just use sequential numbers?
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Quote Originally Posted by shg View Post
    Why NOT just use sequential numbers?
    The codes are created from one catalog at a time. Each catalog has 500+ products. If I use sequential codes, then it will be obvious what catalog a product came from. ie, Product 1001 to 1500 from Catalog A, Catalog B 1501 to 2000. If someone find product 1501 came from catalog B, then it will be obvious product 1502 came from Catalog B as well. I don't want this.

    I want 1502 to be from Catalog D, E, F, ext. without having to manually remember what number you did and did not use.

    Does this make sense?

  8. #8
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Is there a maximum number of products?

    I'm guessing as they'll have 4 digit codes then 9000 is the limit(?)

  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: 4 digit code for similar product, new product unique code

    Then make a random list of numbers and assign them sequentially from that.

  10. #10
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    0001 to 9999 should cover the range

    Would you guys mind making me an example sheet?

  11. #11
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Something like Spencer101's first example, but with the random list assignment like shg is suggesting?

    I honestly don't know how to do this!

    Please and thank you!

  12. #12
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Working on it now.

  13. #13
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101, you the man! Please and thank you. I'm looking forward to your reply,

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    This file may give you some ideas. As fruit is added to column B a number is generated in column A which is used in a VLOOKUP of an array of randomized numbers. When the entry is complete in column B, a 4 digit code from the list of randomized numbers is returned. In addition, a summarized listing is created that is used to fill in repeats of numbers for repeated fruit entries.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  15. #15
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Hi,

    Apologies for not getting back to this post yesterday. My laptop was having a funny half hour and I couldn't connect to the forum for some reason.

    Anyway, attached is my approach to this problem. It's similar to the offering above from newdoverman but slightly simplified.

    There are notes in the file that will hopefully explain what is happening.

    Hope it does what you need.

    S.
    Attached Files Attached Files

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    I cleaned up the coding and moved the "helper" table and summary table to separate sheets.

    The formulae are inserted to row 10,000.
    Attached Files Attached Files

  17. #17
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Hi newdoverman,

    I'm not sure I understand the significance of Sheet 2 in your method.

    Also, worth noting that the OP shows Excel 2003 as his software version. This will mean the IFERROR aspect of your version will not work.

    S.

  18. #18
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    Thank you Spencer101. I didn't notice the Excel version number. I have made amendments to accommodate the version. The second sheet is an information sheet only that can be deleted without consequence if not wanted.
    Attached Files Attached Files

  19. #19
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    Depending upon the frequency of the updates, the 4 digit code may not be sufficient for very long.

  20. #20
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Thanks guys. Just got into work on Monday morning.

    Downloaded both files and having a go at it. I SUPER appreciate everyone's time. Spencer101 and newdoverman, thank you for posting the worksheets!

    Take care,

  21. #21
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    No problem. Happy to help.
    I'm online for a little while if you need further help with it.

  22. #22
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Hey guys. Can I get one more modification to this worksheet? Last time, I promise

    So we have Apples, Orange and Grapes. Each fruit gets a unique number assigned to it per the worksheets above. Now, I want to assign a color what translates to a 2 digit number.

    Each product has a color, and the color gets a number in the order its generated. The colors are unique to the first code.
    -If red is generated first for Apple (4419), then it gets 01. If green is generated next, it gets 02. Makes 4419-01 Apple Red and 4419-02 for Apple Green.
    -If green is generated first for Grape (5520), then it gets 01. If red gets entered next it gets 02. Makes 5520-01 for Grape Green and 5520-02 for Grape Red.
    -Orange (7723) has only one color...Orange It would be 7723-01

    You guys think this is possible?

    Would you guys mind making this a 5 digit number for the product code per newdoverman's suggestion. I may run out faster than planned with only 4 digits. 01000 to 99999 would last me a long time. I'd like to have the leading zero for the 4 digit numbers if possible.

    I've already left stars for newdoverman and Spencer101

    Looking forward to the final worksheet. You guys are epic!
    Last edited by unclejemima; 05-27-2013 at 02:20 PM.

  23. #23
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Would the fruit and the colour be stored in separate columns or the same?

  24. #24
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    thanks again for the reply Spencer101

    The fruit and color would be stored in separate columns.

    thank you kindly!

  25. #25
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    I'd imagine the fruit and color in separate columns makes it easier to do for this situation?

    Let me know.

  26. #26
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Leave it with me. I'll have it back to you ASAP. Hopefully

  27. #27
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    One quick question.... Are you actually using Excel 2003 like your details show?

    If so, that could cause a problem with upping the product codes to 99999 as that version of Excel will only allow 65000 (ish) rows in a worksheet.

  28. #28
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    Glad to help.

    Just saw your message for further requirements. Will think about it after supper.

  29. #29
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    I suggest that you assign numbers to the colours. This will reduce the calculations in a large worksheet. Having fixed colour coding will enable you to have appropriate colours. Eg. Apples, tomatoes and peppers can all be red or green. Having a fixed colour coding would allow you to identify everything that is the same colour (if that ever became an issue or requirement)

    As mentioned before, can you confirm the version of Excel that you are using?

    How many products will you be dealing with?

    When you update your listings, do you delete the listings that have been updated?

    If your products can be classified into different categories, you can take advantage of this by having codes for those categories instead of going to a 5 digit number. Category classification is superior to having larger numbers....I'm a retired trained records management person who assigned file numbers to millions of records...that is why I ask the questions that I have asked.

  30. #30
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Great, thanks guys.

    I'm using excel 2010, switched about 6 months ago and forgot to update my profile, so 99999 should be ok, but lets just leave it a 4 digit for now. The 1000 to 9999 will do fine, and I'll see how it goes. With having the color in the back of the code really reduces the number of codes. I doubt I will need more than 9999 in the products.

    The reason for using different numbers for the colors depending on the product is for a special reasons. If I see Apple-Green 4419-02, I know that there must be at least 2 colors of apples.

    Example, if I have purple as color 09, and I have a purple apple, then the code is 4419-09. Then I know there is at least 9 different colors of apples available. If the 09 is consistent as purple across the board, then it wont have any relevance of how many color of apple are available by looking at the code.

    Now the reality is there is over 5000 colors total between all the products in the catalog, but each product will only use 4-10 colors on average. If I can just create numbers based on the color in relation to the product, then my color digits will stay low (2 digit is LOTS!)

    To make matters worse, Red in an apple might not be red in a grape either, so even though both are called red 01, I want the color codes to be generated per the product as they are entered (in numerical order)

    I hope this makes sense, but I really need the colors to be unique to the product. Probably makes it really difficult to do...?

    Let me know what you guys figure, and as usual, I really appreciate it! This forum is awesome.

    Looking forward to your comments and possible worksheet.

  31. #31
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 4 digit code for similar product, new product unique code

    Colour codes have been added but has only limited testing.

    Hope this is what you want.
    Attached Files Attached Files

  32. #32
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Hi Guys. Any luck with an example worksheet where the color to goes with the product to give it a number? Ie, red apple 4419-01?

    Let me know, and thank you again!!!

  33. #33
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    EDIT: Deleted
    Last edited by Spencer101; 05-28-2013 at 01:44 PM.

  34. #34
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Sorry Spencer101, I just saw your test worksheet after I posted.

    I just tried it. It works, somewhat. Just needs a bit of fine tuning

    If I enter Orange product on the next row, it automatically enters 5405-02 in the ID with color, even before I enter the color.

    If I enter a new color for the Orange fruit product, say purple, then it will assign a new number automatically. 5405-03. But if I enter Orange Fruit Product Color Green, it will not change it back to 5405-01 as it is already in the row above.

    Let me know how you are making out. I'd imagine you are testing this as well?

    Thanks a million!!!

  35. #35
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Hi, that wasn't my version. It was NDM's. I deleted my post above because when I got home and tried it out, I found it didn't quite work too.

    Cooking dinner now, but will continue looking at this after
    I know it can be done, just can't quite get it.

    I will not be beaten by it

  36. #36
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Oops, sorry. I thought it was your worksheet. My mistake.

    Glad you are not giving up on this. I really appreciate both you and newdoverman working on this.

    I'm excited to get it to work!

    Thanks kindly excel pro's

  37. #37
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Well, I think I may have done it!
    You'll have to test it with your real data (I presume this is not really about fruits of various colours), but it seems to work.

    Three helper columns (A:C) that can be hidden and the rest I shall let you work out.

    The Product Code only has 64,000 entries at the moment, but it's easily extended to whatever you need. I had to restrict the file size, hence not the full 99,999 you asked for earlier in the thread.

    The colour code will go up to 99 at present but again, can be extended if need be.

    Let me know if it works.

    S.
    Attached Files Attached Files

  38. #38
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Ignore the version above. Having had time to think about it a little more, it really doesn't do quite what I hoped.
    Back to the drawing board....

  39. #39
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101, I think you may have it!

    I tried it in multiple scenarios and even tried changing back a color to something else after it generated a part number, and it even corrected it!

    I'm going to start entering a bunch of data and see how it goes. Thank you a million!

    I'll keep you posted,

    (insert smile here!)

  40. #40
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    IThat version doesn't work I promise. But the good news is, I do have the solution.

    As soon as I get back home from work I'll post it for you.

    Watch this space...

  41. #41
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    Well... This time I really do think I've done it.
    Took a lot of digging around down the back of the internet, but I ended up back at an old post on this very forum for the answer I was searching for.

    The problem with the last version I posted was it looked for the last colour number associated with any given fruit and added one on to that to create the next number.
    This didn't work as if you had red apple, red apple, green apple, red apple, your colour codes would be 1, 1, 2, 1. Then if the next one was yellow apple the formula would look for the last value for apple and find 1 because that's the one furthest down the column. Then add 1 to that and you ended up with both green and yellow being 2.

    I'm pretty sure that makes no sense the way I've explained it, but it does to me

    So I needed to find a way of doing MAXIF, which as we all know, doesn't exist in Excel at present. I know of a way using an array formula to do this but for some reason that didn't work in this project. But thanks to this forum I learned of a non-array formula way of doing MAXIF (Thanks to tigeravatar!). So it now looks up the max value against apple and adds one to that for a combination that doesn't yet exist.

    I shall stop waffling and let you look at the file.

    I'm sure there is a much neater way of doing this, and perhaps someone far more experienced with the dark art that is Excel will come up with one. But I'm done on this particular one for now

    If this doesn't work then I'm out of ideas!!!!

    Let me know

    S.
    Attached Files Attached Files
    Last edited by Spencer101; 05-29-2013 at 01:55 PM.

  42. #42
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101. Awesome, awesome, awesome. Welcome to the darkside! I'm very impressed, and very grateful.

    You gave me exactly what I came for! Thanks for working with me on this for the last week. A+++++++++++ grade!

    Thanks,

  43. #43
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101...just making sure B2 is supposed to have a value of "1" not a formula like B3, B5, B6, etc.

    Let me know,

  44. #44
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    It makes no real difference. Even with a formula the result will always be 1.

  45. #45
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101...just working on this some more. Very impressed this works!

    Ran into a interesting scenario...If I add more products and colors, but leave a gap between any cells, it calculates -01 for all colors.

    Using your example sheet above, enter values in D24 "Grape" "Green", in D25 "Grape" "Red" will both return the same code. Row 23 has no products or colors entered. As soon as D23 is entered as "Grape" "Orange" then the other formula's will correct.

    Is there any way to have this work while still leaving gaps between rows?

    *edit* I should add that my assumed intent as the color code -01, -02, -03 would add in the order the product/color was added so that if a product/color was added first on row 50 it would be assigned -01, then if another product/color was added on row 25 it would get color -02 as it was assigned second. Is this possible???

    Let me know,
    Last edited by unclejemima; 06-01-2013 at 05:16 PM.

  46. #46
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: 4 digit code for similar product, new product unique code

    When I try to replicate what I think you mean above, mine works fine. I only get 01 for all colour codes if I enter a fruit on a row but do not allocate a colour to it. It's difficult to find the best way forward for that particular issue as I have no idea what the workbook will be used for or specifically HOW it will be used so I don't know if a product could be entered yet a colour not entered.

    As for your edit, again without knowing how the workbook would be used, it's hard to second guess these things. For instance, is it highly likely that you would enter products and leave blank rows only to come back and fill them in later with more products?

    If you need the colour codes added in the chronological order rather than a placement order then you will need to tackle this with a VBA approach rather than using a formula only approach.

  47. #47
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Spencer101. Perhaps you can upload the worksheet again? Using the "unclejemima - FINAL (Hopefully!).xlsx" sheet from above, and the exact steps in my last post, I get the problem where 2 different colors get the same color code if i skip a cell. Not sure if my sheet is correct.

    Please check out this vid I uploaded to youtube... http://www.youtube.com/watch?v=-Fsk_...ature=youtu.be

    Watch it in 720p and you should be able to make out the codes.

    At about 0:06 you can see 2 same codes for 2 different colors. At 0:13 when I add the Grape Orange, you can see the other codes correct themselves. Is this the correct behavior with the formula's?

    When you say "chronological order rather than a placement order" placement order refers to the order they are in the spreadsheet. Your formula approach requires each formula to be one after the other, correct?

    If I need them to be in Placement order, I have to go about it VBA way. Any idea how I would go about this? Should I start a new thread asking if anyone can create a VBA for this?

    If I create Grape Green and Grape Red, I will probably print the codes and use them on product labels/tags. If then when I add Grape Orange, then it changes the other codes for Grape Green and Grape Red, this may cause problems if I've already printed tags for the other Grape Green and Grape Red. Just thinking of all the possible scenario's where this might cause confusion. Test and test again until I can't break it

    Let me know, and thanks again!
    Last edited by unclejemima; 06-03-2013 at 06:05 PM.

  48. #48
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: 4 digit code for similar product, new product unique code

    Hi Guys, I'm going to re-post this thread as its changed nature now that it may need VBA in attempt to solve my problem.

    I'll mark this as solved as it did via the formula method.

    I really appreciate the kind help

    Take care,

+ 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