+ Reply to Thread
Results 1 to 12 of 12

Need to Label SKU by Manufacturer

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    5

    Need to Label SKU by Manufacturer

    What I need to do seems pretty simple, I'm not sure how to do it, though. I have a set of approximately 600 SKU's every month that I need to label by manufacturer. I would like to build a macro in VBA that can identify the unique strand of text and numbers (the SKU) in column A, and label it with the correct manufacturer in column B. I have about 2500 unique SKU's in my inventory and about 30 possible manufacturers to sort them into.

    Where can I start?

    Thanks in Advance,

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need to Label SKU by Manufacturer

    Show us a sample data set, any solution is going to be dependent on where your data is at, and how SKU relates to manufacturer. But yes, this is fairly simple to do.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    01-15-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to Label SKU by Manufacturer

    Hi walruseggman,

    Thanks for your response. Attached is condensed example of SKUs labeled by manufacturer from a previous month. How can I build a program that can identify the unique strand of numbers and letters, (the SKU) ADL5642C, in cell A2 and label it as manufacturer Adlan in cell B2?


    manufacturer.example.xlsx

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Need to Label SKU by Manufacturer

    I'm confused by what you mean by label? Does this help?

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need to Label SKU by Manufacturer

    Sorry, I'm still confused. @JOHN H. DAVIS' code will merge A and B together, but I'm not sure that's what you want to do?

    It sounds like maybe you want this:

    For each SKU listed in column A, look up the correct manufacturer and put that manufacturer's name in column B.

    Is this correct? If so, you'll need to show and explain how the code would look up the manufacturer and where this information is located. A sample data set is preferred.

    Remember, the code has zero intelligence, so there needs to be a set of hard rules in the SKU/manufacturer relationship. It's perfectly fine if your rules are like:

    "If it starts with 'MY', then the manufacturer is Martin Yale"

    and we would need all of those rules for all of the manufacturers, because for example, I don't see how "SCH90778" relates to Intimus.

  6. #6
    Registered User
    Join Date
    01-15-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to Label SKU by Manufacturer

    Hi John H. Davis,
    In the example that I linked in my response above is already labeled how I would like my future reports to look. Basically, I'm going to be pulling my SKU's from my accounting software for each month and I want to run a macro that can label these unique SKU's by the manufacturer.

    So, anytime Excel sees unique strand, ADL5642C in Column A, I want it to populate Adlan in the same row of Column B.

    I hope this is a little clearer.

    Thanks,

  7. #7
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need to Label SKU by Manufacturer

    @ejg1992: Please see my post above. You need to provide rules like this for each manufacturer:

    anytime Excel sees unique strand, ADL5642C in Column A, I want it to populate Adlan in the same row of Column B

  8. #8
    Registered User
    Join Date
    01-15-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to Label SKU by Manufacturer

    Hi walruseggman,
    Sorry, I am a newbie at this. But yes, that sounds like what I would like to do. It is a little complicated as some of my SKU's do not always match the name of the manufacturer as you mentioned with SCH90778.
    Is it possible to create ≈30 different rules for my ≈30 different manufacturers? Is this the easiest way? I don't mind putting in the work now, as this is going to save me hours and hours of work in the future.

  9. #9
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need to Label SKU by Manufacturer

    Yes, either we need all the rules, or if you want, you can provide a handful of rules, we can show you the code, and then you can add in the rest. It would be fairly easy to do.

    And your rules can be as simple as:
    • Starts with MY = Martin Yale
    • Starts with WHI = WB

    etc. etc. etc.

  10. #10
    Registered User
    Join Date
    01-15-2016
    Location
    Baltimore, MD
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to Label SKU by Manufacturer

    Thanks, I appreciate your help. I'd really like to build up my skills, so I'll give you about 6 or 7 rules, and hopefully I can do the rest
    Starts with MYL = Martin Yale
    Starts with BESFD = Formax
    Starts with FMCJ = Syntron
    Starts with SAT = Satori Software
    Starts with NDS = Cumberland
    Starts with OMA = Omation
    Starts with SDM = Standard
    Starts with ROY = Royal

  11. #11
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Need to Label SKU by Manufacturer

    Any questions, just ask.

    Please Login or Register  to view this content.
    Last edited by walruseggman; 01-19-2016 at 11:16 AM.

  12. #12
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,913

    Re: Need to Label SKU by Manufacturer

    Complete list on Sheet2 and run code in Module1.
    Small error
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bakerman2; 01-19-2016 at 11:23 AM.

+ 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: 0
    Last Post: 01-24-2015, 01:58 AM
  2. With a move label macro, prevent label from moving onto another label
    By SocratesJC in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-09-2014, 12:34 AM
  3. how to get all rows that have only one manufacturer
    By buddigars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2014, 09:55 AM
  4. trying to pull out the manufacturer #
    By jlax34 in forum Excel General
    Replies: 3
    Last Post: 05-31-2013, 12:35 PM
  5. Car Manufacturer Auto Filter Macro Problem
    By SVW in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2011, 08:59 PM
  6. Find the most effective manufacturer per sold items
    By ElmerS in forum Excel General
    Replies: 12
    Last Post: 10-10-2010, 06:00 AM
  7. How to assign 'ID' to 'manufacturer' in datafeed
    By donavichi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2009, 07:26 AM

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