+ Reply to Thread
Results 1 to 34 of 34

miltilevel Bill of Material

  1. #1
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    miltilevel Bill of Material

    hello,
    i have attached a file as sample. I need formulas to calculate the yellow highlighted fields.
    thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,729

    Re: miltilevel Bill of Material

    No file has been attached. Read the yellow banner at the top of this page for instructions
    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
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    plz check now if it is uploaded
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: miltilevel Bill of Material

    Don't know if there is any shortcut, but I have to first breakdown the sub-assembly components into their mono ingredients, then add these to the main assembly items.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    this will not work, i added only one formula but actually there will be 1000. there should be a database in the first sheet and the 2nd sheet you select which formula you need the details

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

    Re: miltilevel Bill of Material

    Clean all expected results.

    Details!E3
    Please Login or Register  to view this content.
    Details!H3
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    Hello Windknife,

    Thanks for your reply, I couldn't follow your formula; it seems you are an expert

    The problem is more complex; it is a multilevel formula where different assemblies may form one assembly.
    i have attached another version which is more complex. this can be done without VBA?

    thanks again.
    Attached Files Attached Files

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

    Re: miltilevel Bill of Material

    Ethyl Acetate and Ethyl Alcohol are Assembly, but they don't find Mono data.

    Change D31 and D32 to Mono. You can get the answer.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    even if you change these to mono, still NC DLX3-5 (1/16) 70:30 & NC DLX3-5 (1/16) SOLUTION. check the file plz
    Attached Files Attached Files

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

    Re: miltilevel Bill of Material

    answer is wrong. delete...

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

    Re: miltilevel Bill of Material

    Try this,
    Please Login or Register  to view this content.
    This formula just can handle 5 level. If you want to handle more level, you can modify it.
    Attached Files Attached Files
    Last edited by windknife; 12-24-2024 at 11:34 AM.

  12. #12
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    how to modify i am not that much expert

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

    Re: miltilevel Bill of Material

    6 level
    Please Login or Register  to view this content.
    You can compare 5 level and 6 level to learn how to modify.

  14. #14
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    kindly check if this is correct:

    =LET(
    a,CHOOSECOLS(FILTER(Re,Re[Components]=Details!C2),2,3,4),
    b,DROP(REDUCE("",SEQUENCE(ROWS(a)),LAMBDA(m,n,VSTACK(m,IF(INDEX(a,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(a,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(a,n,2),INDEX(z,,3))),INDEX(a,n,))))),1),
    c,DROP(REDUCE("",SEQUENCE(ROWS(b)),LAMBDA(m,n,VSTACK(m,IF(INDEX(b,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(b,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(b,n,2),INDEX(z,,3))),INDEX(b,n,))))),1),
    d,DROP(REDUCE("",SEQUENCE(ROWS(c)),LAMBDA(m,n,VSTACK(m,IF(INDEX(c,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(c,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(c,n,2),INDEX(z,,3))),INDEX(c,n,))))),1),
    e,DROP(REDUCE("",SEQUENCE(ROWS(d)),LAMBDA(m,n,VSTACK(m,IF(INDEX(d,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(d,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(d,n,2),INDEX(z,,3))),INDEX(d,n,))))),1),
    f,DROP(REDUCE("",SEQUENCE(ROWS(e)),LAMBDA(m,n,VSTACK(m,IF(INDEX(e,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(e,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(e,n,2),INDEX(z,,3))),INDEX(e,n,))))),1),
    g,DROP(REDUCE("",SEQUENCE(ROWS(f)),LAMBDA(m,n,VSTACK(m,IF(INDEX(f,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(f,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(f,n,2),INDEX(z,,3))),INDEX(f,n,))))),1),
    h,DROP(REDUCE("",SEQUENCE(ROWS(g)),LAMBDA(m,n,VSTACK(m,IF(INDEX(g,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(g,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(g,n,2),INDEX(z,,3))),INDEX(g,n,))))),1),
    i,DROP(REDUCE("",SEQUENCE(ROWS(h)),LAMBDA(m,n,VSTACK(m,IF(INDEX(h,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(h,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(h,n,2),INDEX(z,,3))),INDEX(h,n,))))),1),
    j,DROP(REDUCE("",SEQUENCE(ROWS(i)),LAMBDA(m,n,VSTACK(m,IF(INDEX(i,n,3)="Assembly",LET(z,CHOOSECOLS(FILTER(Re,Re[Components]=INDEX(i,n,1)),2,3,4),HSTACK(INDEX(z,,1),INDEX(z,,2)*INDEX(i,n,2),INDEX(z,,3))),INDEX(i,n,))))),1),
    uniqueItems,SORT(UNIQUE(INDEX(j,,1))),
    DROP(REDUCE("",uniqueItems,LAMBDA(m,n,VSTACK(m,HSTACK(n,SUM((INDEX(j,,1)=n)*(INDEX(j,,2))))))),1)
    )

  15. #15
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: miltilevel Bill of Material

    Good job, windknife! Here's a Rep for you!

    Just want to add. You can put a formula to Ingredient Type in column D: =IF(ISNUMBER(MATCH([@Ingredients],[Components],0)),"Assembly","Mono")

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

    Re: miltilevel Bill of Material

    Your formula is very well.

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

    Re: miltilevel Bill of Material

    @josephteh, thanks for your Rep and suggestion.

  18. #18
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: miltilevel Bill of Material

    You are welcome, windknife!

  19. #19
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    thank you both Windknife and Josephteh.

    i have attached athe file with few things to adds, i think it should be easy for you guys to solve it.

    thanks in advance.
    Attached Files Attached Files

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

    Re: miltilevel Bill of Material

    See attachemen for seeing details.
    Attached Files Attached Files

  21. #21
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: miltilevel Bill of Material

    @camS74, just want to add one thing.. you could use a spill formula in helper column L:
    =CHOOSECOLS(XLOOKUP(I3#,Re[Ingredients],Re[Ingredient Type],""),1)

  22. #22
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    Josephtech, thanks.the helper not required anymore since was not used in Windknife formula.
    Windknife, plz check the attached file with more request. I tried to do it but somehow failed.
    Attached Files Attached Files

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

    Re: miltilevel Bill of Material

    I don't know what you want. By the way, valid can't refresh automatic without VBA.
    I think you must ask one question in one post, don't drip-feeding your qestion.

  24. #24
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    you mean for the same file i should post different posts?
    if you can check the file that I have attached V4. it is the same your formula, but I want to exclude "Non-Solvent" from the formula; is it possible?

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

    Re: miltilevel Bill of Material

    Try this,
    Please Login or Register  to view this content.
    What I mean is that you should tell all the problems at the beginning post.

  26. #26
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    This is working . The total percentage can be added? Since if I add in a different formula and if the table size expands, I will get an error.
    Honestly, when I started this thread, I didn't expect someone to have this knowledge, and my idea was expanded.

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

    Re: miltilevel Bill of Material

    Try this,
    Please Login or Register  to view this content.

  28. #28
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    worked, but we need to change the remaining 3 formulas to have the same total percentages. i highlighted them in the attached file.
    Attached Files Attached Files

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

    Re: miltilevel Bill of Material

    see attachement.
    Attached Files Attached Files

  30. #30
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    thanks, you are the king of Excel

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

    Re: miltilevel Bill of Material

    You are welcome. :)
    I am not a king of excel. I learn excel from the gurus of this forum.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  32. #32
    Registered User
    Join Date
    12-20-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    14

    Re: miltilevel Bill of Material

    Hello and Happy New year. do you know someone who can convert my file to web app. of corse many other function formulas to be added. with formas and data entry, stock and prices... i don't mind if it will cost me something to develop it.

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

    Re: miltilevel Bill of Material

    I don’t know any engineers who have the time to help write web apps.
    Maybe the Gurus of this forum know such people.

    Happy New Year too you.

  34. #34
    Registered User
    Join Date
    12-22-2024
    Location
    UAE
    MS-Off Ver
    365
    Posts
    1

    Re: miltilevel Bill of Material

    Thanks you

+ 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] Bill of material
    By fvdw in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-25-2023, 07:58 AM
  2. [SOLVED] aaaaaa
    By hejszyszki in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2021, 06:01 AM
  3. [SOLVED] Calculate Material Release - Bill of Material
    By mgoh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2021, 06:40 AM
  4. Multi level Bill of material
    By neorez in forum Excel General
    Replies: 36
    Last Post: 03-09-2016, 02:05 AM
  5. general bill of material
    By francesco.ciani88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2015, 02:04 PM
  6. Printing mutiple pdf's from a bill of material
    By joepjebaars in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2013, 02:16 PM
  7. bill of material, assemblies
    By jamesw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2011, 01:53 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