+ Reply to Thread
Results 1 to 6 of 6

Calculate committed inventory total based on BOMs and a schedule

  1. #1
    Registered User
    Join Date
    06-12-2011
    Location
    Tanga, Tanzania
    MS-Off Ver
    Excel 2003
    Posts
    2

    Calculate committed inventory total based on BOMs and a schedule

    Hi there,

    Looking for some help calculating committed inventory based on a schedule and number of BOMs (bill of materials). So basically I have a workbook with the first worksheet being a schedule of widgets to build with part numbers, a second sheet with all the parts used in building the different widgets, and then a number of BOMs (each on separate sheet with unique part numbers) with parts required for each different widget. Each widget has a unique list of parts and quantities used but some of the parts are used across multiple widgets. A widget may show up more than once in the schedule or not at all.

    What I'm trying to do is go through each widget in the schedule then add the parts required to build each into the 2nd sheet so I can have a running total of committed inventory. I've attached a sample workbook if my description is tough to follow.

    Any help would be greatly appreciated. Cheers!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Calculate committed inventory total based on BOMs and a schedule

    Is this how you wanted?
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Re: Calculate committed inventory total based on BOMs and a schedule

    Please see attachment. I've amended your sheet so that all widgets are on a single sheet, this way you can add more widgets without ending up with hundred of sheets.

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

  4. #4
    Registered User
    Join Date
    06-12-2011
    Location
    Tanga, Tanzania
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculate committed inventory total based on BOMs and a schedule

    Thank you both for your help. Both solutions posted worked but I'm looking to keep the BOMs on separate sheets as that is how the data is currently stored. Also, jindon's solution gives me an out of range message when I add or delete sheets. Also, I would like to show all the parts in the "All Parts" worksheet whether they are 0 or not as I will pulling that data into another workbook.

    In addition to this, the schedule data may not be stored in such a perfect manner. The data may start in a lower row and column. How would I modify the macro if that were the case? I'm a bit new to vba but I have a background in java/c++.

    Thanks again!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Calculate committed inventory total based on BOMs and a schedule

    Try the attached
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-17-2014
    Location
    Perth, Australia
    MS-Off Ver
    Windows 7
    Posts
    85

    Re: Calculate committed inventory total based on BOMs and a schedule

    Quote Originally Posted by padra2001ca View Post
    Thank you both for your help. Both solutions posted worked but I'm looking to keep the BOMs on separate sheets as that is how the data is currently stored. Also, jindon's solution gives me an out of range message when I add or delete sheets. Also, I would like to show all the parts in the "All Parts" worksheet whether they are 0 or not as I will pulling that data into another workbook.

    In addition to this, the schedule data may not be stored in such a perfect manner. The data may start in a lower row and column. How would I modify the macro if that were the case? I'm a bit new to vba but I have a background in java/c++.

    Thanks again!
    Try this attachment. I've put in some code so that if the data starts in a different row or column, or the columns are spaced apart from each other (this applys to all the sheets) it will still run as normal. I moved some data around on your spread sheet to show you what I mean (See sheet Schedule and All parts). This happens because I've got the macro searching for headers (widget, qty to build, part number e.g.). If any of the headers change on any of the sheets, the macro will not run and a message box should appear telling you that a specific header could not be found on a specific sheet. If you do choose to change the headers on the sheets, you must change the below part of the macro to reflect the changes made on the sheet.

    Please Login or Register  to view this content.
    Also, the data must start directly below the headers for the macro to run. If you would like a blank row (or two) between the data and the header, you must change the below code.

    Please Login or Register  to view this content.
    If you got any questions or need me to specify something, please let me know.
    Attached Files Attached Files
    Last edited by Jeckford; 01-05-2015 at 06:25 AM.

+ 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] Calculate total hours per week per schedule
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2013, 11:28 PM
  2. [SOLVED] Calculate total sum based on different rate
    By Roy Kean in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-12-2013, 04:10 AM
  3. Calculate total based on one cell value against another
    By mdshotgun in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2013, 07:37 AM
  4. Replies: 0
    Last Post: 02-07-2013, 08:42 PM
  5. Schedule and Inventory
    By jokla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2007, 10:36 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