+ Reply to Thread
Results 1 to 15 of 15

Bill of material

  1. #1
    Registered User
    Join Date
    06-24-2023
    Location
    Netherlands
    MS-Off Ver
    MS 365
    Posts
    10

    Bill of material

    Hello guys,

    I have been struggling for a while with my goal to automate a bom level structure in excel. In the appendix you can find 2 columns. In column A you can find level and in column B bom. I only receive column A data, and need to recreate the results in column B. Basically, i am asking you guys to help me with formulas or ways to automate this result.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Bill of material

    so if you receive , eg. 2 you need to achieve this?

    1.1.1
    1.1.2
    1.1.3
    1.1.4
    1.1.5
    1.2.1
    1.2.2
    1.2.3
    1.2.4
    1.2.5
    1.2.6
    1.2.7
    1.2.8
    1.2.9
    1.2.10
    1.2.11
    1.2.12
    1.2.13
    1.2.14
    1.2.15
    1.2.16
    1.2.17
    1.2.18
    1.2.19
    1.2.20
    1.2.21
    1.2.22
    1.2.23
    1.2.24
    1.2.25
    1.2.26
    1.2.27
    1.2.28
    1.2.29
    1.3.1
    1.3.2
    1.3.3
    1.3.4
    1.3.5
    1.3.6
    1.3.7
    1.3.8
    1.3.9
    1.3.10
    1.3.11
    1.3.12
    1.3.13
    1.3.14
    1.3.15
    1.3.16
    1.3.17
    1.3.18
    1.3.19
    1.3.20
    1.3.21
    1.3.22
    1.3.23


    will be better if you show any example what you really receive and what should you achieve
    try to be more descriptive

  3. #3
    Registered User
    Join Date
    06-24-2023
    Location
    Netherlands
    MS-Off Ver
    MS 365
    Posts
    10

    Re: Bill of material

    Hi Sandy,

    Thanks for the quick reply.

    I will try and make it clearer. Column A is what i actually receive. Column B is what i want to achieve. I only receive column A. I need a proper formula in column B to get the same results that are in column B of the example file.

    Context is:

    We need to convert Column A to Column B, otherwise it can't be accepted in our system. It's a bill of material (bom) where the higher levels represent the underlying materials that are needed to build the lower levels.

    For instance, level 0 is always the endproduct/final assembly, and you need level 1's to build it. However, level 1 got its own underlying materials (level 2's) that are needed to build it and so on and so forth.

    I hope this will make it more understandable. Feel free to ask.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Bill of material

    ok, what you should do if you'll receive: 2,4,5 ?
    is there are any criteria or something like that, you are very frugal with important information
    I know you know but I don't know what you know and unfortunately my crystal ball is currently being repaired

  5. #5
    Registered User
    Join Date
    06-24-2023
    Location
    Netherlands
    MS-Off Ver
    MS 365
    Posts
    10

    Re: Bill of material

    Hi Sandy,

    I have added a new appendix with arguments that may help understanding and create a formula.

    I think i have covered every scenario that may happen.

    Some additional information; for every next row, the level can only rise 1 at and never more than 1 at a time.
    Though, the level can drop multiple levels in a next row.

    Let me know if you have more questions.

    Thanks a lot
    Attached Files Attached Files

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Bill of material

    ok, got it
    I'll try with PQ, if you want formula you'll need to wait for someone else

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

    Re: Bill of material

    Try this,

    C2
    Please Login or Register  to view this content.
    copied down.
    Attached Files Attached Files

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,819

    Re: Bill of material

    Are you still using Excel 2013 or somthing newer?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    06-24-2023
    Location
    Netherlands
    MS-Off Ver
    MS 365
    Posts
    10

    Re: Bill of material

    Hello everyone that helped me.

    I would like to thank all of you for your efforts, i greatly appreciate it. The answer of windknife seems to work well. Is there any common way to thank someone on this forum? Like AliGW footnote is describing, i added reputation to your accounts.

    As for sandy, if you happen to be able to do this in PQ then i am very interested in reading into it. Though, i can imagine you want to help someone else in need whilst my problem seems to be solved.

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Bill of material

    Try this in B2, copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by leelnich; 06-25-2023 at 07:18 AM. Reason: Changed Copy cell to B2
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

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

    Re: Bill of material

    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

  12. #12
    Registered User
    Join Date
    06-24-2023
    Location
    Netherlands
    MS-Off Ver
    MS 365
    Posts
    10

    Re: Bill of material

    One more question regarding your formula, is it correct that the formula sticks to row 1 untill 32 and does not progress on while dragging the forumla downward? It works well though.

    If yes, can you explain what this part does, i am confused.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Bill of material

    Quote Originally Posted by fvdw View Post
    As for sandy, if you happen to be able to do this in PQ then i am very interested in reading into it. Though, i can imagine you want to help someone else in need whilst my problem seems to be solved.
    I'll try in my free time, but you are right - problem is solved

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

    Re: Bill of material

    Another option: Please try in B2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Bill of material

    $1:$32 assume the max length of bom. You can adjust the number to fit the max length of bom.

    If you want to drag a larger range, you can modify the formula as follows and attachement.

    C2

    Please Login or Register  to view this content.
    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. Multilevel Bill of Material cost sum
    By Blotolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2023, 11:03 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. bill of material, assemblies
    By jamesw in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-18-2011, 01:53 PM
  7. Multi level Bill of material
    By neorez in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-21-2011, 04:35 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