+ Reply to Thread
Results 1 to 26 of 26

Weekend rota Planning (generate values based on criteria/date/shift pattern)

  1. #1
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Please anyone can help ? Can some help with formula to be able to generate time and green color in certain cells automatically ones the date is changed based on entered values or based on 4on 4of shift pattern, more explanation included on attached workbook.
    Attached Files Attached Files
    Last edited by DeeWuu; 04-27-2024 at 12:09 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    YOu should explain what you want help with in the opening post, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Remove ALL expected results from the table, then this in E7:

    Please Login or Register  to view this content.
    CF rule for E7:

    =E7<>""

    Applies to: =$E$7:$L$11
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Thank for the replay, also I need the results on the table to match with values on the right when date in E5 is changed to different day.
    For example if I change the date to (E5) 04/05/2024 the green results will match results from the values on the right hand side with same dates..
    This doesn't need to be in time format can be with general.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    The results on the right-hand side are entered manually.

    Change E5 to this to pull dates from the table on the right:

    =O5

    The formula I gave you will reflect whatever is in that table (O4:T8).

  6. #6
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Apologies, I didn't describe this properly. The results on the RHS only 0 and 1 are entered manually and this results will be generate for the whole year from January till December ant this is only for weekends (Friday-Saturday-Sunday and Monday) rota and different employees are working different shift/days on each weekend day. So when I added more date on RHS its messing up with table on the LHS ( this table will contain more employees). Also that's why I would like to do not changing E5 just left to change date manually. Basically if for example I put date 10/06/2024 and on the RHS Apple has number 0 or 1 under the same date results on LHS will change. Hopefully I described this better this time
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Try this:

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

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Also, in E6:

    =UPPER(TEXT(E5,"dddd"))

    Copy to the other day cells.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    If you decided to extend your grid to a full week (7 days), then you'd need this:

    Please Login or Register  to view this content.
    and you'd need to extent the Applies to range in the CF rule as well.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Attached Files Attached Files
    Last edited by AliGW; 04-28-2024 at 05:16 AM. Reason: Workbook added.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Seeen, gone, no reply ...

    Please see the extra help in post #9. It also tells you how to sign off the thread.

  11. #11
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Im really sorry but Im on shift and I was needed somewhere else and left my PC on that's why I didn't replay yet either tested your formula. I had a quick look and all its going to the right direction. I definitely wont need to extend this to whole week but for 100% there will be more employees added to the list/table.
    I found another issue that sometime certain employees will finish shift different time than 18:00 and when tried to change this manually whole formula is gone. Is it possible that this values can be altered manually without messing whole formula ?? I'am really appreciate you commitment to this. Also I was wondering if you will be able to give brief explanation to your formula ?

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    there will be more employees added to the list/table
    You'd just change the range accordingly.

    Is it possible that this values can be altered manually without messing whole formula ??
    No.

    I found another issue that sometime certain employees will finish shift different time than 18:00
    You must have known this at the start - why didn't you mention it and how on Earth would Excel even know from the data as you have presented it? The times are not associated with the employees anywhere in the workbook.

    I have a horrible feeling that I've wasted quite a bit of time on a set of data that is a long way from complete.

    Also I was wondering if you will be able to give brief explanation to your formula ?
    I don't think there's any point given what you have just reveealed.

    You need to provide a much more realistic set of sample data - it's going to be a case of starting from scratch.

    I shall probably leave this for someone else to look at - I feel I've spent enough time on it already (just so that you know).
    Last edited by AliGW; 04-28-2024 at 08:24 AM.

  13. #13
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Im sorry you feel like that but the idea in my head was much simple then you created formula... Never seen that advance formula you created ever...the formulas I know is much much simpler and less advanced and also its really difficult form me to explain what I want , sorry. I try last time, please:
    Example: If employee APPLE has number 1 under the same date what is in E5 then in E7 will show 6:00 and green fill and in F7 18:00 and green fill ( it would bee good if this value can be altered) and same operation for different employees and diferent dates.. If this can be done I get it You have spent enough time to help me, I will propably will try to use you above formula anyway. Thanks for you time
    Attached Files Attached Files

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    This is no different to the original workbook you provided. Once again, shift times are not associated anywhere in that workbook with individual employees. I cannot make the formula work any differently witbout that information.

    A cell can contain a formula or hard-coded text - not both. The minute you override a formula, the formula is gone forever. You cannot override the formula I provided, anyway, as it's a dynamic array.

    Since you are unable to provide a dataset that shows clearly the times that each individual works on their shifts, I cannot help you further. I am sorry, but that's the way it is.

  15. #15
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Thanks for your help and time

  16. #16
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Hi, this is my another try asking for help and I hope this time I have explained good enough for you guys to help me with my problem.

    Need change cell value base on more then 1 criteria.


    Full explanation included on workbook.
    Attached Files Attached Files

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    There isn't any doubt about what you want. My formula does exactly whan you have shown. What it doesn't (and cannot) do is put in different shift times for different people.

    I notice that your latest worksheet doesn't account for this, either. I am going to step aside now as it's realy evening and I'm going offline. Maybe someone else will be able to explain the issue to you.

  18. #18
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Quote Originally Posted by AliGW View Post

    I notice that your latest worksheet doesn't account for this, either.
    It does at bottom paragraph on green ish text box. Thanks for your help and time, have a nice evening.

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    That wasn’t what I meant, but if you are insistent on overwriting a formula, then it’s going to need a different approach. If you’ve had no joy by tomorrow, I’ll have another think.

  20. #20
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,337

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    A possible option is to have a different number for a different shift time so 1 = 06:00 - 18:00 , 2 = 07:00 - 16:00 etc.

    Given this, I don't know if this can be incorporated into a formula that was provided by Ali which is way beyond my capabilities.

    Failing this, is a VBA solution an option ?
    Last edited by JohnTopley; 04-28-2024 at 01:45 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    I could do that, yes, I think, but the OP wants to be able to override entries, so a spill formula won’t work - it would need to be a copy across and down one.

  22. #22
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Quote Originally Posted by AliGW View Post
    it would need to be a copy across and down one.
    That would be perfect.
    And yes I had no joy yet but to be honest haven't got much time to look on it. Thanks for replay

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    So John's suggestion is a non-starter - is this correct?

    Will the employees always be in the same order in the lookup table as they are on the summary table?

  24. #24
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    In E7 copied across and down:

    =LET(x,IFNA(INDEX($P$5:$T$53,MATCH(E$5,$O$5:$O$53,0),MATCH($D7,$P$4:$T$4,0)),""),IF(ISODD(COLUMN()),IF(x=0,"","06:00"),IF(ISEVEN(COLUMN()),IF(D7<>"","18:00",""))))
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    12-14-2023
    Location
    Worthing
    MS-Off Ver
    365
    Posts
    20

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    OMG you did it Thank you so much. You are the boss

  26. #26
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Weekend rota Planning (generate values based on criteria/date/shift pattern)

    Yes, I did, didn't I?

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. How to generate a Random shift pattern
    By Jon L in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2021, 01:05 PM
  2. Capacity planning shift rota Help or miracle!!!
    By GordonKy42 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2019, 11:11 AM
  3. [SOLVED] Multiple criteria to find Shift pattern
    By jet2004uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2017, 08:26 AM
  4. Shift Pattern Adding Hours based on Shift etc
    By fgbuk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2016, 07:56 PM
  5. Shift Rota/Calendar 5 crews Rotating Shift
    By Flynn Rider in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-07-2013, 08:03 AM
  6. [SOLVED] Sum Weekend and Holiday Values Based on a Date Range in another Cell
    By GiGi320 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2012, 11:53 AM
  7. Rota's and Daily Shift Pattern's - Help !!!
    By Scott Cheesman in forum Excel General
    Replies: 3
    Last Post: 03-31-2005, 10:06 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