+ Reply to Thread
Results 1 to 14 of 14

Need help with a formula for scheduling based on duration and priority of events

Hybrid View

akamenov88 Need help with a formula for... 11-18-2015, 07:44 PM
FlameRetired Re: Need help with a formula... 11-18-2015, 08:48 PM
akamenov88 Re: Need help with a formula... 11-18-2015, 09:05 PM
FlameRetired Re: Need help with a formula... 11-18-2015, 09:43 PM
akamenov88 Re: Need help with a formula... 11-18-2015, 10:57 PM
FlameRetired Re: Need help with a formula... 11-18-2015, 11:02 PM
akamenov88 Re: Need help with a formula... 11-18-2015, 11:17 PM
bebo021999 Re: Need help with a formula... 11-19-2015, 12:24 AM
akamenov88 Re: Need help with a formula... 11-19-2015, 01:17 AM
FlameRetired Re: Need help with a formula... 11-19-2015, 01:49 AM
bebo021999 Re: Need help with a formula... 11-19-2015, 02:30 AM
FlameRetired Re: Need help with a formula... 11-19-2015, 02:39 AM
akamenov88 Re: Need help with a formula... 11-19-2015, 10:56 AM
akamenov88 Re: Need help with a formula... 11-20-2015, 04:05 PM
  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Need help with a formula for scheduling based on duration and priority of events

    Hi dear Excel gurus!

    I have a an issues coming up with a formula to create a schedule based on a given input.

    Please find attached a spreadsheet outlining the problem with given scenarios and desired OUTPUT.

    Scenario 1 = output schedule 1 (with emphasis on high priority events)
    Scenario 2 = output schedule 2 (with emphasis on evenly spacing out high and normal priority events)

    I am not quite familiar with functionality of Excel and wonder if any array formula would do the job. I have seen people do magic here with Excel and thought to give it a try.

    Always eager to learn new things

    Thanks in advance! Any help/idea will save the day!

    -T
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Need help with a formula for scheduling based on duration and priority of events

    A quick question akamenov88,

    In the first scenario there is a pattern of cycles where "high" is listed 5 times and "normal" is listed the same number of times. Is this a coincidence or will live data show similar same-count-pattern? Other?

    Thank you,
    Dave
    Dave

  3. #3
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    Dave,

    To answer your question, this is a coincidence. It will depend on number of objects (7 in the scenarios but could 4,5,10,etc...) The count will vary according to the duration input data (3,6,5,12, etc..). I guess the high priority data is the data that has a higher duration (days). Normal priority has always 1 day duration. Does this answer your question?
    Thank you,
    Dave[/QUOTE]

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Need help with a formula for scheduling based on duration and priority of events

    Maybe, but I am still not quite certain. If the number of rows in output of "high" were 7 could we expect the number of rows of "normal" to be 7 also?

  5. #5
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    Yes sir. Let's say if we had 4 objects and had #4 as 'high' priority with duration of 3, the output in scenario 1 would be:
    day1: #4
    day2: #4
    day3: #4
    day4: #1
    day5: #4
    day6: #4
    day7: #4
    day8: #2
    day9: #4
    day10: #4
    day11: #4
    day12: #3
    and so on

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Need help with a formula for scheduling based on duration and priority of events

    Super! That helps.

  7. #7
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    I meant to say in scenario #2. Scenario 1 would be:

    day1: #4
    day2: #4
    day3: #4
    day4: #1
    day5: #2
    day6: #3
    day7: #4
    day8: #4
    day9: #4
    day10: #1
    day11: #2
    day12: #3
    Day 13: #4
    Day 14: #4
    Day 15: #4
    and so on. I hope you understand the logic I am trying to implement. I am not sure if I need to have a reference table for help or... Thank you for working on it!

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Need help with a formula for scheduling based on duration and priority of events

    See attachment for Scenario 1
    Attached Files Attached Files
    Quang PT

  9. #9
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    This is amazing! Thank you! Let me know if you come up with anything on Scenario 2, @bebo021999
    I wonder how I can learn Excel so well!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Need help with a formula for scheduling based on duration and priority of events

    @beboo021999,

    So you solved for column J first.

    I understood this much differently ... that we were to solve column I first. VLOOKUP was already in place in column J dependent upon output of I. That's very think-outside-of-the-box. I never thought of changing the "rules" like that.

    Good one.

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,646

    Re: Need help with a formula for scheduling based on duration and priority of events

    Quote Originally Posted by FlameRetired View Post
    @beboo021999,

    So you solved for column J first.

    I understood this much differently ... that we were to solve column I first. VLOOKUP was already in place in column J dependent upon output of I. That's very think-outside-of-the-box. I never thought of changing the "rules" like that.

    Good one.
    So, are you ready for scenario 2 ?
    It 's been beating me over 2 hours.

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Need help with a formula for scheduling based on duration and priority of events

    Quote Originally Posted by bebo021999 View Post
    So, are you ready for scenario 2 ?
    It 's been beating me over 2 hours.
    No. It's way past my bedtime. Scenario 1 already beat me up. Thanks for asking, though. Have fun .... you always have fun.

  13. #13
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    Thank you both for working on this!
    I wonder if scenario 2 has to be done with VBA...

    Please feel free to add help columns such as a priority column from (1-7 in this case) or anything that can facilitate the calculation.
    The solution doesn't have to be as elegant as the one for scenario 1.

    Anyway, thanks a lot so far!

  14. #14
    Registered User
    Join Date
    02-28-2014
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Need help with a formula for scheduling based on duration and priority of events

    Hi guys,

    I tweaked the formula so we don't have to use 'high' and 'normal' to solve in column I.

    I figured that I could rank the names in the input any way I want to get desired order.

    =IF(R6>SUM($G$5:$G$14),INDEX($S$5:$S$431,MOD(R6-1,SUM($G$5:$G$14))+1),IF(COUNTIF($S$5:S5,S5)<VLOOKUP(S5,$F$5:$G$14,2,0),S5,INDEX($F$5:$F$14,SMALL(ROW($F$5:$F$14)-MIN(ROW($F$5:$F$14))+1,SUMPRODUCT(1/COUNTIF($S$5:S5,$S$5:S5))+1))))

    I still cannot come up with an algorith to create the Scenario 2 pattern:

    I tried to use the output from the first scenario and modify it but haven't had any luck so far. Let me know if you think of anything please.

    T

+ 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. events and the duration of execution
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-20-2014, 08:27 AM
  2. [SOLVED] Need formula to calucalte based on start month # and duration # of months
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2014, 05:59 PM
  3. Help with scheduling workbook that auto updates the dates of events
    By StudentTeacher in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2013, 08:42 AM
  4. counting number and duration of non-continuous events
    By Ragsie123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2013, 06:44 PM
  5. [SOLVED] Formula: To calculate duration between two times, if duration is over 6hours subtract 30mi
    By MattBarnes7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 03:22 PM
  6. Scheduling: Calendar style scheduling based on scheduling list
    By denkatprieto in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-19-2012, 11:10 AM
  7. [SOLVED] Excel VBA worksheets events priority
    By walduxas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2012, 06:13 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