+ Reply to Thread
Results 1 to 12 of 12

BOM template based on Indenture to ERP template

  1. #1
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Question BOM template based on Indenture to ERP template

    Dear Forum,

    At our company, we have to upload very complicated long Bill of Materials into our new ERP system on a weekly basis. These BOM's are based on Indents (BOM Explosions). These are always multi-layered (endlessly), meaning, there is a BOM in a BOM. In the example, the product P1-A0000 is built of three components, and these three components are built out of other components.

    The template we receive from the ERP system shows that in Row 1 we need the product and in Row 2 the components. However. I cannot seem to figure out how to write a formula that gets the result shown in columns 'Outcome'. It is not difficult to get Level 0 in row 1 and Level 2 in row 2, but to then get Level 2 in row 1 and then Level 4 in row 2, I do not seem to be able to figure it out.

    I put another formula in there that removes all the blanks, maybe that helps you. Keep in mind that the formula/solution has to be expandable. These BOM's might consist out of 10 levels, but also multiple products on one level.

    It is quite the challenge (for me at least), I am curious if any of you can find a solution!

    Thank you so so much in-advance!
    Attached Files Attached Files
    Last edited by TBRM Group; 11-10-2021 at 10:38 AM.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: BOM template based on Indenture to ERP template

    I don't think you can do this with formulas; you'll need VBA. You could use something like this though:

    Please Login or Register  to view this content.
    That will output into columns I and J.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    Hi WBD,

    Wow. That worked amazing! One problem however, when I added a fourth indent to test it stopped working. As seen in the attachment it now also displays P3-A1001,
    P3-A1002, P3-A1003, P3-A1004 and P3-A1006. It shouldn't do that, as these are not a BOM when it does not have components under it. Any idea how to fix that?
    Attached Files Attached Files

  4. #4
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: BOM template based on Indenture to ERP template

    Ouch. Rookie mistake. Try this one instead:

    Please Login or Register  to view this content.
    WBD

  5. #5
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    Utter perfection. Thank you so much!

  6. #6
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    It works perfect. I do have one more request if it isn't too much effort.
    I would like Sheet 1 to be INSERT and Sheet 2 to be OUTCOME. I cannot figure out how to change the code to work with sheets.

    There is an INSERT tab with the BOM, Quantity, Sort Codes etc., there is an INSTRUCTIONS tab (where I want to place the VBA Button for the code to run) and then there is the OUTCOME tab where I upload the data.

  7. #7
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: BOM template based on Indenture to ERP template

    On the INSERT sheet, is the first part number in A2 or somewhere else?
    On the OUTCOME sheet, should I start putting the data in A1, A2 or somewhere else?

    WBD

  8. #8
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    Yes both are perfect! Insert A2, Outcome A2

  9. #9
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: BOM template based on Indenture to ERP template

    Extended with constants, commented:

    Please Login or Register  to view this content.
    Hope that works

    WBD

  10. #10
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    It is amazing how fast you can write this up damn! It works!

  11. #11
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    Test Reply

  12. #12
    Registered User
    Join Date
    11-10-2021
    Location
    Netherlands
    MS-Off Ver
    Office365
    Posts
    34

    Re: BOM template based on Indenture to ERP template

    Hi WideBoyDixon,
    As you helped me so gracefully last time, I wonder if you could help me with an additional issue. The macro you wrote worked beautifully, but unfortunately, the standard for BOM explosions (2 level indenture) is not followed by everyone and I more often than not receive a BOM with two different problems, or, (1) they use spaces instead of indents, and (2) they use 1 level indents, and not 2 level indents. I wonder if there is any easy solution for this, to identify what is happening, and then to convert it to 2 level indents so the rest of the BOM macro can still be used. Or do you advise to have separate buttons? (space to indents, indents 1 to indents 2, and then your previous macro as the third button). I found a macro for spaces to indents but it was very very slow, and you had to select, and than run it, very inefficient, and still not resolving the other issue. I hope you could help me out, thank you so much in advance for having a look.

+ 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. Help to create a Tracker based on a Template
    By lookforsmt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2021, 12:57 PM
  2. Project Based Template For Dates
    By Kumara_faith in forum Excel General
    Replies: 13
    Last Post: 07-13-2015, 10:22 AM
  3. [SOLVED] Creating new sheets based off template
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2015, 09:00 PM
  4. Create new sheet based on a template
    By paul_53 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-10-2014, 03:39 AM
  5. Replies: 2
    Last Post: 05-20-2011, 07:26 AM
  6. WBS numbering help, auto numbering with indenture
    By hisham2929 in forum Excel General
    Replies: 2
    Last Post: 02-18-2007, 06:59 PM
  7. Replies: 4
    Last Post: 04-04-2005, 05:06 AM

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