+ Reply to Thread
Results 1 to 10 of 10

Formula to Sum values until level is = or lower (BOM)

  1. #1
    Registered User
    Join Date
    06-07-2022
    Location
    Curitiba
    MS-Off Ver
    2019
    Posts
    5

    Formula to Sum values until level is = or lower (BOM)

    Hi guys,

    First time posting here, hope I can get it right.

    I need a formula to sum values until it reaches the same/lower "level" of the pn I want.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Formula to Sum values until level is = or lower (BOM)

    Try this in G2:

    =SUM(D$1:INDEX(D:D,MATCH(F2,C:C,0)))

    and copy into G3. It will sum all the values up to the pn number (not sure what the xxxx values are for). The results differ from your values, so perhaps I haven't understood your requirements properly.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-07-2022
    Location
    Curitiba
    MS-Off Ver
    2019
    Posts
    5

    Re: Formula to Sum values until level is = or lower (BOM)

    Thank you for your time Pete, I guess is somewhat related to that but not quite.

    The xxxx would be other pns, I just was too lazy to write them.

    What I want is related to the level.
    So for pn 6868 in the example, its level is 2 so the formula would sum all levels higher (its "sons" like 3,4,5,6 and so on) until it reaches the same or lower level (0,1,2).


    Attachment 835556

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Formula to Sum values until level is = or lower (BOM)

    G2
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Formula to Sum values until level is = or lower (BOM)

    Cell G1 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-07-2022
    Location
    Curitiba
    MS-Off Ver
    2019
    Posts
    5

    Re: Formula to Sum values until level is = or lower (BOM)

    Quote Originally Posted by windknife View Post
    G2
    Please Login or Register  to view this content.
    That one did it, thank you all for the support!

  7. #7
    Registered User
    Join Date
    06-07-2022
    Location
    Curitiba
    MS-Off Ver
    2019
    Posts
    5

    Re: Formula to Sum values until level is = or lower (BOM)

    Quote Originally Posted by wk9128 View Post
    Cell G1 formula , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Also worked, thank you

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Formula to Sum values until level is = or lower (BOM)

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    06-07-2022
    Location
    Curitiba
    MS-Off Ver
    2019
    Posts
    5

    Re: Formula to Sum values until level is = or lower (BOM)

    Just a minor correction, at least for me: Replaced the last argument -1 to -2 and it did the trick, before it was adding items with the same level

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Formula to Sum values until level is = or lower (BOM)

    @lgrbueno You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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] Extracting the 1 level lower part numbers based on Level numbers in multi level BoM
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2022, 05:35 AM
  2. Decimal number on lower level or higher level
    By toplisek in forum Excel General
    Replies: 11
    Last Post: 04-02-2021, 04:37 AM
  3. Replies: 2
    Last Post: 11-14-2019, 07:06 PM
  4. [SOLVED] Need to plot the next lower level number `Set Text'.
    By Sekars in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2018, 09:15 AM
  5. [SOLVED] Mark for given part and all its immediate lower level as `Yes'.
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2018, 07:47 AM
  6. Replies: 7
    Last Post: 09-10-2012, 09:18 PM
  7. Replies: 0
    Last Post: 09-23-2011, 01:01 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