+ Reply to Thread
Results 1 to 4 of 4

Calculating total quantity through multilevel BOM structure

  1. #1
    Registered User
    Join Date
    11-25-2023
    Location
    Zwolle
    MS-Off Ver
    Latest
    Posts
    2

    Calculating total quantity through multilevel BOM structure

    hi all,

    At my new job i do a lot of costcalculations through Bill of materials of customers. Therefore i need to understand the total usage of a row/partnumber througout all the levels.

    Column A (BOM LEVEL) Column B (Quantity) Column C (QTY multilevel)
    1 1 (should be = 1)
    1.1 2 (should be = 1 x 2 = 2)
    1.1.1 3 (should be = 1 x 2 x 3 = 6)
    1.1.2 2 (should be = 1 x 2 x 2 = 4)
    ... up to 6 levels deep


    Normally i then create new columns to find the parent level, VLOOKUP and then multiply etc. But is there a formula that i can copy in column C to do all this work in once and calculate through the total usage by finding the parent, multiply etc?

    Thanks for you help already.

  2. #2
    Forum Contributor
    Join Date
    03-12-2009
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 365
    Posts
    236

    Re: Calculating total quantity through multilevel BOM structure

    I'm sorry, but this isn't very clear.

    Was your third row supposed to say 1.1.1 3 (should be = 1*2*3=6), or was it supposed to be 1.1.2 3?

    Could you help me figure out the math?
    Is it: if there is a 1, then 1 x if there is a 2, then 2 x the Quantity?
    If you can't figure out how a formula works, try stepping through it using "Evaluate Formula" in the Formula Auditing menu item in the tools menu!

    If you want to see where your code went wrong, try stepping through it by clicking in the code and pressing F8 and watch as the magic happens!


    If you are happy with any of the results, please add to the contributor's reputation by clicking the star icon.

  3. #3
    Registered User
    Join Date
    11-25-2023
    Location
    Zwolle
    MS-Off Ver
    Latest
    Posts
    2
    Quote Originally Posted by Everstrivin View Post
    I'm sorry, but this isn't very clear.

    Was your third row supposed to say 1.1.1 3 (should be = 1*2*3=6), or was it supposed to be 1.1.2 3?

    Could you help me figure out the math?
    Is it: if there is a 1, then 1 x if there is a 2, then 2 x the Quantity?
    Sorry to made it not clear. Column a is the levelposition (no calculation with this). Column a is only showing the levelpath. So the deepest level should multiply against all previous/parent level quantities: example: 1 machine (level 1), in this machine there is a identical section 2 times in(level 1.1) and in one section are 3 bolts. To determine the total usage of that bolt its level 1 (1 pcs) x level 1.1 (2pcs) x level 1.1.1 (3pcs)= 6pcs of that bolt in that machines.

    And this calculation i would like to have in one column C

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Calculating total quantity through multilevel BOM structure

    I don't understand why 1.1.1.3 = 1*2*3 (after ignorng the first level).
    Why not 1*1*3, like the other 3 cases have been calculated?

    Please give also more examples with more levels:
    Which result do you expect in this case: 4.3.5.7.2.6?
    Last edited by HansDouwe; 11-25-2023 at 11:56 PM.

+ 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. [SOLVED] remaining quantity bar (related to total quantity)
    By vermaccio in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-09-2023, 01:13 PM
  2. [SOLVED] Calculate Structure QUANTITY
    By ionelz in forum Excel General
    Replies: 9
    Last Post: 03-25-2021, 07:08 AM
  3. [SOLVED] VBA for calculating total quantity in multi level Bill of material
    By redmarko in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-29-2020, 05:45 PM
  4. Total Quantity per some creteria
    By i82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2017, 02:49 AM
  5. [SOLVED] Running total of Quantity on Hand Vs Sales Vs Quantity to Produce
    By jespo1351 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2015, 07:34 AM
  6. [SOLVED] Calculating when a given lot quantity is finished
    By exarranum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2013, 02:34 AM
  7. Calculating E-mail quantity
    By pearlofthewest in forum Excel General
    Replies: 4
    Last Post: 04-16-2010, 08:26 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