+ Reply to Thread
Results 1 to 11 of 11

Excel sheet for decrypting historic product codes

  1. #1
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Excel sheet for decrypting historic product codes

    Good morning everyone.

    I need to assistance with an Excel sheet I've put together.

    Long story short - we have a database of historic orders from an old system we no longer use and the product codes are 15 characters long but each character determines a certain characteristic of the product.

    Example:

    32AWE2B7SAWEC4S

    Character 1:- Country Code
    Character 2:- Width
    Character 3:- Depth
    Character 4 & 5:- External colour
    Character 6:- Profile
    Character 7:- Coating - External
    Character 8:- Thickness of external sheet
    Character 9:- Substrate (External)
    Character 10:- Core type
    Character 11 & 12:- Internal liner colour
    Character 13:- Coating - Internal
    Character 14:- Thickness of Internal sheet
    Character 15:- Substrate (Internal)

    I've currently got a simple spreadsheet set up so that I paste the relevant product code into column A and then columns B-N are setup with dropdown menus, each linked to a validation list which relate to the part of the code above.

    I have to then manually go through the product code and drop down each menu option to the relevant number or letter so that I have a full product description.

    Ideally I would like to code this so that I could paste the product code in and Excel automatically populates the adjacent cells based on the defined characters and lists.

    Is this firstly something that's possible with VBA and if so, how complex is it to implement?

    Thanks in advance
    Rich

  2. #2
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Excel sheet for decrypting historic product codes

    .
    Hello.
    I think the best thing would be for you to upload a test book to the Forum where we can clearly see a couple of examples of what you have and what you want to achieve.

  3. #3
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Excel sheet for decrypting historic product codes

    Max Panel Code Identifier.xlsm

    Here is a sample of the spreadsheet.

    Please excuse how basic it is - it's literally something I cobbled together in a few minutes to help me.

    Thanks
    Rich

  4. #4
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,459

    Re: Excel sheet for decrypting historic product codes

    I have put together an example of using a UDF to do this.

    When you look in the spreadsheet at the formula i have used it is broken down as below:
    =PullFigures($A6,B$3,1,1)
    =PullFigures(Max Panel Code,Named Range,Position of start character,Amount of characters to use)
    Attached Files Attached Files
    If things don't change they stay the same

  5. #5
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,543

    Re: Excel sheet for decrypting historic product codes

    There is an inconsistency for the Profile list. The last three items contain more than 1 identification mark. What to do about it?

    Artik

  6. #6
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Excel sheet for decrypting historic product codes

    Thats brilliant - thank you CheeseSandwich.
    I do see Artik's point - if the code has PB for the profile it throws an error for everything this column onwards. That's going to be awkward because there are some codes (albeit very few) with these slightly longer codes.

  7. #7
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Excel sheet for decrypting historic product codes

    One other thing I wanted to check - I've got a rudimentary "Clear Contents" button to wipe any inputs off the form once finished. Not sure what to add to the vba module to stop it wiping the formulae and just the content.

  8. #8
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,459

    Re: Excel sheet for decrypting historic product codes

    Those issues should be fixed on the attached:
    Attached Files Attached Files
    Last edited by CheeseSandwich; 09-01-2022 at 09:45 AM. Reason: Changed the attachment to the correct one

  9. #9
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Excel sheet for decrypting historic product codes

    Hi Cheese, I was just about to reply before you posted - I can't change the actual code numbers for each list as they are what was set in the system prior to us moving to a new system. So the codes PB and PC are important as they are what would be on some historical orders. Sorry, didn't mean to throw a spanner in the works!

  10. #10
    Registered User
    Join Date
    09-01-2022
    Location
    Holywell, North Wales
    MS-Off Ver
    Office 365
    Posts
    23

    Re: Excel sheet for decrypting historic product codes

    Ignore - I just Alt-F11 and saw what you meant! Sorry, multitasking with too many things and didn't look properly!
    Thankyou for your help - it is very much appreciated

  11. #11
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,459

    Re: Excel sheet for decrypting historic product codes

    Does that mean it is working for you now as it is?

+ 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. Replies: 12
    Last Post: 06-13-2022, 08:39 PM
  2. Replies: 1
    Last Post: 06-10-2022, 12:44 PM
  3. [SOLVED] (Urgent help) Replacing Product codes with Product name
    By yash.kedia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2016, 06:17 AM
  4. Replies: 4
    Last Post: 09-27-2014, 05:42 PM
  5. Looking up new bar codes and matching to product.
    By rsuits in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2014, 11:48 AM
  6. Data from two sheets, same product codes, match into a new sheet
    By schroeders12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2014, 10:42 AM
  7. [SOLVED] I have two columns (A) and (G) that have like product codes however
    By genesisoxygen@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-07-2006, 01:05 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