+ Reply to Thread
Results 1 to 6 of 6

Creation of production schedule (staggered distribution)

  1. #1
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Creation of production schedule (staggered distribution)

    Hello My Friends!

    I have a task to create a production schedule for different types of products. And i need to distribute this product types between predifined number of units. To solve it with formulas not so easy...

    Please find attached file example with my notes. I try to explain problem in more detail. Also for better imagination I create 2 examples (one easy and one complicated).

    Could you plz help me with this issue and write vba code. I am "zero" in coding

    Please ask if you have any questions.

    Best Regards,
    Igor.
    Attached Files Attached Files
    Last edited by ISMI; 09-29-2017 at 04:49 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Production Schedule

    ISMI,
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    Could you plz help me with this issue and write vba code:
    Go to the Commercial Services section of this site http://www.excelforum.com/commercial-services/
    And read the FAQ on how to solicit paid help.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Re: Creation of production schedule (staggered distribution)

    The title was renamed. Is't fine now? Thank you, I hope somebody help with the issue.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Creation of production schedule (staggered distribution)

    Thank you for fixing the title. I think I found a formula solution. It requires a helper column, though. In C2, enter the value "1". Then in C3:

    =IF(B3="","",C2+B3)

    You can make the text in the helper cells white if you don't want them to be visible, or you can put them somewhere else in the workbook and hide them. With the helper column in place, use the following formula in D9:

    =IF($C9="","",IF(MOD(D$8,6)<>MOD(ROW()-ROW(D$8),6),"",IF(D$8=1,INDEX($A$3:$A$6,1),INDEX($A$2:$A$6,MATCH(IF(MOD(SUMPRODUCT((OFFSET($C$9:$C$14,0,1,,D$8-1)<>"")+0)+1,SUM($B$3:$B$6))=0,SUM($B$3:$B$6),MOD(SUMPRODUCT((OFFSET($C$9:$C$14,0,1,,D$8-1)<>"")+0)+1,SUM($B$3:$B$6))),$C$2:$C$6,1)+1))))

    Fill down and right and you should be all set. You can add the colors with some basic conditional formatting based on the letter in the cell.

    I've checked a few different variations and it seems to hold up, but take a look at the attachment to see if works as desired.
    Attached Files Attached Files
    Last edited by CAntosh; 09-29-2017 at 05:05 PM.
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  5. #5
    Forum Contributor
    Join Date
    12-24-2016
    Location
    London
    MS-Off Ver
    2013
    Posts
    153

    Re: Creation of production schedule (staggered distribution)

    Thank you, Cantosh! You are genius One additional question: In column "unit name" can be different groups of units. So, how with formula automatically detect another group and restart your formula for this group(for example with prefix Room)? Please look attached file. I marked cells in red.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Creation of production schedule (staggered distribution)

    How about if it detects separate groups by the space in between groups? For this solution, you'll have to sacrifice cell $C$8: leave this cell blank, then use the following formula, array-entered, in D9:

    =IF($C9="","",IF(MOD(D$8,MIN(IF($C9:$C$15="",ROW($C9:$C$15)-ROW($C$8)-1))-MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))))<>MOD(ROW()-ROW(D$8)+MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))),MIN(IF($C9:$C$15="",ROW($C9:$C$15)-ROW($C$8)-1))-MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1))))),"",IF(D$8=1,INDEX($A$3:$A$6,1),INDEX($A$2:$A$6,MATCH(IF(MOD(SUMPRODUCT((OFFSET($C$9,MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))),1,MIN(IF($C9:$C$15="",ROW($C9:$C$15)-ROW($C$8)-1))-MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))),D$8-1)<>"")+0)+1,SUM($B$3:$B$6))=0,SUM($B$3:$B$6),MOD(SUMPRODUCT((OFFSET($C$9,MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))),1,MIN(IF($C9:$C$15="",ROW($C9:$C$15)-ROW($C$8)-1))-MAX(IF($C$8:$C9="",ROW($C$8:$C9)-ROW(INDEX($C$8:$C9,1,1)))),D$8-1)<>"")+0)+1,SUM($B$3:$B$6))),$C$2:$C$6,1)+1))))

    Fill down and right and it should treat each group separated by a blank row as a unique group. Take a look at the attachment to see if it'll work for you:
    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. [SOLVED] Production Schedule as per Available Manpower
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-10-2017, 02:36 AM
  2. Production Schedule as per Available Manpower
    By Rajeshkumar R in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-05-2017, 02:44 PM
  3. Production Schedule
    By Hector_Soto in forum Excel General
    Replies: 11
    Last Post: 02-16-2017, 01:58 AM
  4. how to create a production schedule
    By freemason in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2013, 06:57 PM
  5. How to Schedule a Production run using excel
    By puddles01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2013, 03:51 PM
  6. Schedule production help
    By liamsnodden in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2012, 12:53 PM
  7. [SOLVED] how to prepare production schedule
    By MUH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2005, 01:07 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