+ Reply to Thread
Results 1 to 1 of 1

Manual schedule file to automated using VBA

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    USA
    MS-Off Ver
    Window 7
    Posts
    28

    Manual schedule file to automated using VBA

    Trying to create a scheduling chart(a bit like gnatt chart). I was able to work the code for one line but couldn't do it for the second line items to start from where it left over in first. I have 4 centers and each center needs its own schedule. to start from the column L. Column J has total fans to do in the batch. Column I is the center where theses fans are to be worked on. column H is the max output for the week for that center. column G has max output for day, and column F has output/hour.
    L2 is week 1, M2 is week 2 and so on.

    For example,
    for row 3,
    L3 is 110 because (J3-sum(K3:K3)>=H3) so they can produce 110 fans that week.
    M3 is 110 because (J3-sum(K3:N3)>=H3) so they can produce 110 fans that week.
    but N3 is only 10 because (J3-sum(K3:M3)<H3) so the cell value is (J3-sum(K3:M3))

    for row 4,

    L4 and M4 are blank because L3 and M3 satisfed the total work for the weeks
    and N4 is 68 becasue N3<>H3 so there is room to produce more fans that week, but we have used some time to produce which is N3/F3. total hours in a week is 40 so the value is 40-( N3/F3 )*F4 which is 68.


    for row 5,

    It has to go tot last active column in the above row which is O4
    if O4 = H4 then move to P5
    check all the above rows in the column O
    so value O5 = rounddown((40-((O4/F4)+(O3/F3)))*F5


    for row 7,

    check last valued column in the above row which is P6
    but P7 = blank because ((40-((O5/F5)+(O4/F4)+(O3/F3)))*F6 = 0)
    move to P8 and do the same


    This has to be repeated for all the centers

    This is the code I have written but it only give the first row right. and the second row starts from the beginning instead of where the first row values end. Also does not calculate the hours used by previous rows.
    Please Login or Register  to view this content.
    Please see the attached excel file and let me know if you have any questions. I appreciate any help. thank you in advance.
    Attached Files Attached Files
    Last edited by Raja10; 06-08-2020 at 02:37 PM.

+ 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. Automated Break Schedule
    By northernwarrior in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2020, 05:57 PM
  2. Manual hand written billing to automated excel
    By kavithavaratharaj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2019, 01:48 PM
  3. Automated Schedule Transfomation
    By fotodude in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 11-09-2017, 12:12 PM
  4. [SOLVED] Automated Work Schedule
    By gum605 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2016, 03:52 AM
  5. Automated Schedule
    By viperezai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2015, 05:14 PM
  6. Unable to arrive at dynamic & automated alternative to manual find & replace process
    By calantha in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-19-2013, 03:55 AM
  7. Automated Rotation Schedule
    By Rachel Johnstone in forum Excel General
    Replies: 0
    Last Post: 02-23-2012, 07:39 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