+ Reply to Thread
Results 1 to 7 of 7

Extract Low level parts from a Hierarchial Bill of Materials

  1. #1
    Registered User
    Join Date
    11-11-2024
    Location
    Bengaluru
    MS-Off Ver
    Office 365
    Posts
    9

    Post Extract Low level parts from a Hierarchial Bill of Materials

    Dear All,

    I am looking for help on a macro which can extract lowest level parts from the Bill of Materials that are in a folder.
    I have around 1000 Bill of materials from which child parts have to be extracted, which is taking lots of time doing manually.

    I don't have programming knowledge 120003515.xlsx

    1. Select the folder where all the Bill of materials are placed
    2. Open each Bill of material excel and identify the lowest level parts
    2.1 Hierarchy will be shown as (in Explosion Level) .1, ..2, ...3, ....4 and so on
    Identification of lowest level parts: Any part has its child will be the lowest
    Ex: If ..2 has ..3, only ..3 parts has to be considered as lowest
    If ..2 do not have ..3, ..2 will be the lowest
    If ..2 has ..3 and ...3 has ....4, ....4 will be the lowest
    3. Extract Only the lowest level parts to a new sheet (Child Part) in the same excel
    4. Creat only the unique list in Column F & G
    5. Create a single excel with only the lowest level parts

    Regards,
    Vijay

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    440

    Re: Extract Low level parts from a Hierarchial Bill of Materials

    Dear svijikumar

    Creating a macro for this will help automate the extraction process across multiple files.

    Step-by-Step Solution
    Select the Folder: Prompt the user to select a folder containing all Bill of Materials files.

    Process Each File: Loop through each Excel file in the folder to extract the lowest-level parts based on the hierarchical structure.

    Identify Lowest-Level Parts: Parse the hierarchy level in each file (".1" for level 1, "..2" for level 2, etc.).

    Check if a part has a child level. If it doesn’t, mark it as a lowest-level part.

    Extract and Save Unique Parts: Copy each lowest-level part to a new "Child Part" sheet within the same file.

    Only keep unique parts in columns F and G
    .
    Consolidate Results: Combine all extracted unique lowest-level parts into a single Excel file.

    Please Login or Register  to view this content.
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Mark Thread as Solved...

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Extract Low level parts from a Hierarchial Bill of Materials

    @ Sudbhavani...

    I would appreciate if you removed MY SIGNATURE...From Your profile...Please have a bit of integrity to come up with your own...

    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Extract Low level parts from a Hierarchial Bill of Materials

    macro which can extract lowest level parts from the Bill of Materials that are in a folder.
    My take on this...
    Change below red snippet to your Path that houses the files...
    And push the button...

    Excel.png

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Sintek; 11-11-2024 at 06:56 AM.

  5. #5
    Registered User
    Join Date
    11-11-2024
    Location
    Bengaluru
    MS-Off Ver
    Office 365
    Posts
    9

    Post Re: Extract Low level parts from a Hierarchial Bill of Materials

    Hi Sudbhavani,
    Thank you very much for the help on the macro.

    Below are the observations
    1. Child parts are not identified and created in each File
    2. Column G of the input data is considered for the analysis. Attached is the output file after running the macro. Column D (Component Number) Should be considered

    Each BOM should have its child part lists in the same excel
    The identified child parts from each BOM should be summarized in the output excel along with the source BOM # for traceability
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    02-04-2017
    Location
    chennai
    MS-Off Ver
    MS OFFICE 365
    Posts
    440

    Re: Extract Low level parts from a Hierarchial Bill of Materials

    Quote Originally Posted by svijikumar View Post
    Hi Sudbhavani,
    Thank you very much for the help on the macro.

    Below are the observations
    1. Child parts are not identified and created in each File
    2. Column G of the input data is considered for the analysis. Attached is the output file after running the macro. Column D (Component Number) Should be considered

    Each BOM should have its child part lists in the same excel
    The identified child parts from each BOM should be summarized in the output excel along with the source BOM # for traceability

    Consider Column D (Component Number): The macro currently focuses on extracting unique parts based on values from Columns F and G. To align with your requirement, the macro must reference Column D instead of Column G for the unique parts identification and extraction.

    Child Parts Identification: It seems that the child parts are not being properly identified and created. This could be due to incorrect handling of hierarchy logic. Let's refine the logic to correctly detect child parts.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Extract Low level parts from a Hierarchial Bill of Materials

    The macro currently focuses on extracting unique parts based on values from Columns F and G
    As I understand it, the sheet "Child Part" has the required result extracted in A & B and then F & G is only the unique based on the extracted A & B...

    If this is the case then...@svijikumar...Code in post 4 does this directly to F & G bypassing the need for A & B extraction first...

+ 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. Creating multi level Bill of Materials (BOM) from single level table
    By Andy Howcroft in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2023, 08:26 PM
  2. [SOLVED] Multiply depending on level to find Total Qty in Bill of Materials
    By MikeOlsen8000 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-24-2020, 05:25 AM
  3. Bill of Materials
    By DennisWA in forum Excel General
    Replies: 7
    Last Post: 11-27-2017, 06:05 PM
  4. Multi-level Bill of Materials
    By ahouston in forum Excel General
    Replies: 0
    Last Post: 07-02-2015, 12:11 PM
  5. Bill of Materials conversion from multi level to single level
    By susmitpatel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-11-2013, 12:53 AM
  6. Bill of Materials
    By tonyhindmarsh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-19-2007, 05:37 AM
  7. bill of materials
    By stevekirk in forum Excel General
    Replies: 7
    Last Post: 12-10-2006, 05:12 PM

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