Hello all,
Hoping for some help with adding unique identifiers to a list of... let's call them products. I have attached an excel sheet showing how the input would look and the (hopefully) output. Basically, I would have a long list of these products with a "base name" which is added upon each time the product is used. Think of it as generations.
In my example, we have three different products that each has an associated quantity. I want the code to look in the Qty column (in this case B) and expand each record by the number indicated and add a unique identifier to the end. The catch is, I also need it to search a list of existing products stored in a separate file to determine if that product has been used before, and if so, what the next unique identifying number would be in the sequence. It would also be nice to be able to dictate what the unique identifier looks like (i.e. maybe it's not always just numerical, maybe we add a symbol after the number) though this is not strictly necessary.
eg: NAT214-005-006 has already been used 7 times before, so in the master list NAT214-005-006-00X (x=1-7), etc. already exists so the program should be able to recognize this and select NAT214-005-006-008 at which to start numbering.
Basically 3 separate steps
1) expand the records according to the values in the Qty column, copying the "base name" into each new row.
2) search the other excel file with the master list for this base name, and upon finding records, append the unique identifier from -001 to -00X (whatever is next in the sequence).
3) add these new products to the master list so it remains updated.
Thank you so much to whoever can help me out with this little problem.
Bookmarks