+ Reply to Thread
Results 1 to 4 of 4

Setting up a production planning sheet with Macros

  1. #1
    Registered User
    Join Date
    05-11-2020
    Location
    Ahmedabad, IN
    MS-Off Ver
    Office for Mac 2011
    Posts
    2

    Setting up a production planning sheet with Macros

    Hello! I'm trying to set up a sheet that can help me with production planning of a manufacturing facility.

    Background: A multi-product manufacturing facility needs to semi-automate its production planning. There are 26 products and 8 equipment lines. A primary line and a secondary line are predefined for each product. They can only be produced in one of the two predefined lines. Therefore, a bunch of products can be produced in lines 1 and 2, a few in line 3 and 4 and so on.

    Data available:
    - Product names
    - Primary and secondary lines each product is allocated to
    - Output quantity
    - Turnaround time for each product, in days

    Objective:
    - Based on manual selection of the drop down list, a formula must run which can select one of the two lines predefined for that product based on availability and populate the production line number in a cell automatically. The first date for production may be assumed as the first of every month
    - Every time the product is selected, the cell in Start date (column E) should be automatically filled up calculating the last
    - Columns that are mentioned in the sheet (in order from A to F) are batch number (manually filled), Product name (drop down list manually selected), Line number (automatically populated), starting date, date of receipt (automatically calculated from cycle time)

    I have been able to populate the Line (column C) based on the selection of product in the drop down list by the VLOOKUP function, but the complication for me is that my formula doesn't factor in that IF the primary line is occupied, the secondary line should be selected. I tried used the IF formula with an IF and THEN condition, but I'm probably making a mistake in the formula.

    Can the formula be made to run automatically, instead of pasting the formula from the row above and give me a production line number after the product (column C) drop down list is selected. Do I need a macro to do this? Any help on the formula and macro will be highly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Setting up a production planning sheet with Macros

    Do you determine that the primary line is occupied if the line number already exists in column C of the Output sheet? If so, what happens when the primary and secondary line numbers are the same in the Database sheet, for example for K, P and R?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    05-11-2020
    Location
    Ahmedabad, IN
    MS-Off Ver
    Office for Mac 2011
    Posts
    2

    Re: Setting up a production planning sheet with Macros

    Hi Mumps1, thanks for your response. What I'm trying to do is when the product is selected from the drop down list, the first available line is populated. Logically, it happens by simultaneously looking at both lines allocated to that product and then selecting the one which is available first.

    P Q and R have only one line that can be allocated to them. I have given the same line number as the secondary line because I figured that if there was a sheet-wide formula which was run, blank cells would create a problem in calculation. I hope this answers your question.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Setting up a production planning sheet with Macros

    I still don't quite follow. Currently, in the Output sheet, you have M - 6 and T - 4. Let's assume you next select U in column B and column C would be populated with the number 5. Then you select V in column B. The choices for V in Database are 4 or 5. Number 4 is already in use for T and number 5 is already in use for U. What happens now?

+ 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. Solver Production Planning Issue
    By preszsbuild in forum Excel General
    Replies: 4
    Last Post: 07-19-2019, 08:12 AM
  2. Production Planning in Excel?
    By oval in forum Excel General
    Replies: 0
    Last Post: 02-10-2019, 08:06 AM
  3. Production Planning calendar, don't know where to start.
    By jamescoup in forum Excel General
    Replies: 1
    Last Post: 04-24-2017, 11:45 AM
  4. Production Planning
    By flyguy89 in forum Excel General
    Replies: 3
    Last Post: 01-01-2017, 08:55 AM
  5. Solver for Production Planning
    By snap101 in forum Excel General
    Replies: 2
    Last Post: 02-23-2016, 02:48 PM
  6. Production Planning Model
    By Ebruin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-13-2013, 05:27 PM
  7. Production Planning!
    By Salford Steve in forum Excel General
    Replies: 3
    Last Post: 01-23-2007, 05:26 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