+ Reply to Thread
Results 1 to 5 of 5

Part Number and Components

  1. #1
    Registered User
    Join Date
    09-02-2016
    Location
    WI
    MS-Off Ver
    2013
    Posts
    2

    Part Number and Components

    Hello,
    I'm currently have two lists of data.
    The first list is a list of Parent Item numbers.
    The second list is the components that make up the parent number.
    I'm trying to figure how to get the components to move from a vertical list to a row.

    Example of current data set.:
    Parent Item Component Item
    11000 CM-11000-BK
    11000 CM-11000-40
    11000 S0104U
    11000 S0104U
    11000 S0178X
    11000 S0178X
    11000 11000-BK
    11000 11000-WA
    11000 21400
    11000 21400
    110001 11000
    110001 45571
    110002 11000
    110002 45572
    110003 11000
    110003 45016

    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Part Number and Components

    Here is a vba solution for you

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-02-2016
    Location
    WI
    MS-Off Ver
    2013
    Posts
    2

    Re: Part Number and Components

    The vba code isn't grabbing all the components of a kit number.
    Example it only grabbed 2 components that make up 11000

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Part Number and Components

    Unable to replicate your issue. Attached is my worksheet showing values that you have provided and the results of the Macro on Sheet2
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: Part Number and Components

    Here's a non VBA approach...

    I have sequenced your list, created a unique reference for each combination, then used a vlookup function across the rows (up to the maximum number of components for any one parent).

    All you need to do now is replace the formulas with the values, remove the original component column, then use the Remove duplicates function on the Parent column.
    Attached Files Attached Files

+ 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. sum only right part (number part) of the cells
    By jojo1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2015, 10:50 AM
  2. Help returning part number 1 time and adding up like part number QTY
    By SOLERSA in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2014, 06:31 AM
  3. Replies: 4
    Last Post: 07-02-2014, 04:29 PM
  4. How to sum part number
    By jamest6 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 02:45 AM
  5. Replies: 1
    Last Post: 02-09-2013, 10:57 PM
  6. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  7. Replies: 4
    Last Post: 12-09-2010, 06:57 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