+ Reply to Thread
Results 1 to 20 of 20

Populate Calendar w/multiple dates/times

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Populate Calendar w/multiple dates/times

    Hello, I have hit a stumbling block, and hope this can be completed.

    I can get the calendar populated for the first start/end times, but need to enter multiple dates/times for the same item.
    The only thing I can think of is adding more rows, and just keep going down the column instead of across the rows.
    (would prefer to go across the rows - Still not sure of how many I would need)

    Thanks!
    Chris
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Nothing?
    Is this not do-able? VB Code?

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Populate Calendar w/multiple dates/times

    This could be done with a few formulae.

    Are you only ever going to have one event at any one time slot for each day?

    I would suggest that instead of having the complete year shown in the Schedule sheet (365 + columns), you only have one month shown, and have a drop-down list whereby you can select the month of interest - the calendar display would change automatically.

    In terms of data entry, it would be simpler (for you) to just have one column for start date/time and one column for end date/time (or you could replace this with a Duration column), and to have multiple entries in different months going down the sheet.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    That's what I thought.
    Think I'll put this project to rest.

    Thanks,

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Populate Calendar w/multiple dates/times

    Ah well, I did make a start in laying this out so that you have only one month displayed, using the date in B3 to control the month to display, and starting with Saturday going across to Sunday 6 weeks later (which is the maximum number of days you will need).

    I'm going out soon, but I could pick this up again later if you want to progress with it - you need to answer my question about the time slots.

    Pete

  6. #6
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Wow, okay. Thanks!
    The boss would like to see this progress so...

    "Are you only ever going to have one event at any one time slot for each day?" Yes, only one event per time slot.
    And I just found out the "data" sheet will contain about 350/370 items (Under Title)

  7. #7
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    I've been playing a little more on the data page.
    Please see attachment.

    What I have come up with is to 'ADD' minutes to the date to make things a little easier...
    But the new problem is the Coffee breaks and lunch break.
    Is there any formula what can detect this time, and 'skip' coffee and lunch breaks when adding the time?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    I'm actually making progress here!
    A couple of things I would like to work out...

    If the number of periods extends past 4:00pm, add one day then continue...

    ---

    LOL Its kinda convoluted, but its working...
    (I'm sure this could be simplified as well... once I get the formulas worked out, I'll condense what I can)
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    Try the following:
    1) Type 1/1/2018 3:30:00 PM into cell F12,
    2) Type 50 into cell G12,
    3) Past the following formula into cell K12: =IF(MOD(F12+(G12/1440),1)>--"16:00",F12+2/3+(G12/1440),F12+(G12/1440))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    That formula works! Thank you!

    I've found a glitch in my own code now.
    Seems that if a course spans over the coffee break and into lunch, the 10 minutes
    for the coffee break isn't added in... For example:
    If a course runs 240 minutes, the 10 minutes isn't added on after lunch.

    Suggestions?
    And THANKS!

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    I tested these in row 8 so they are written for the cells in that row.
    As for adding the ten minutes when the time ends during lunch modify the formula in column N to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If a course runs through the first break and lunch and ends during the second break it will cause the same issue unless the formula in column O is modified as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Unfortunately if a course were to run 8 hours, that is through both breaks and lunch, which causes it to go past 4:00 PM the formula I wrote earlier (post #9) won't work. I am trying to discover a way to modify that formula without creating circular reference issues. However I thought that I would get the other formulas to you in a more timely manner. I will work on the both breaks/lunch/into the next day scenario later unless someone else has solved it before then.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    I believe that this may be a suitable solution for the last issue of which I posted.
    Paste the following formula in cell H8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  13. #13
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Quick test seems great! thank you!
    (No time to test right now... a tomorrow task!)

    THANKS!

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    You're Welcome and thank you for the feedback. If the tests prove successful please take a moment to mark the thread as 'Solved' by using the thread tools link above your first post. I hope that you have a blessed day.

  15. #15
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Hello, Pete mentioned being able to display just one month on the calendar instead of the entire year.
    Would you mind? (I really have no clue on how to pull that one off!)

    Thanks!

    P.S. Would only having one month show speed up calculations?
    (My work computer is super slow at calculations)

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    There are probably other, aka better, ways to do this. However looking at the layout of the 'Schedule' sheet, if a month starts on a Saturday, as is the case with September 2018, the dates in row 2 start with the preceding Sunday. If that month has 31 days, it would then end with column AM. You could 'clear all' from column AN to the right. As to whether or not it will speed up calculations I can't really say, although it seems likely as you have eliminated @28,000 cells that have formulas needing to be updated.
    It would at least be a way of displaying only a month without adding yet another formula.
    If your computer is slowing down when putting in data you could try going to 'Options' on the 'File' tab and choose 'Formulas'. You could then select 'Manual', so that after you have input your data you can press the F9 key to have the computer update the calculations on both the 'Data' and 'Schedule' sheets, for all of the data that needs to be evaluated (you could go get a snack while the computer is doing this).
    Sorry not to be of more help. Perhaps marking this thread as 'Solved', if indeed the scheduling is now working the way you want, and opening a new thread dedicated to speeding up calculation, might bring better results.

  17. #17
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Thank you.
    Really appreciate your help with this project.
    It's working, and I think the calculations are slowing down due to the number of rows held within the Name Manager...

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Populate Calendar w/multiple dates/times

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  19. #19
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Populate Calendar w/multiple dates/times

    I've been off the board for a few weeks, but here is the file I worked on originally, to show you how you can set your file up to display only one month. Just change the date in B3 to see the effect.

    Note that this is based on the first file you posted, not on any subsequent ones.

    Hope this helps.

    Pete
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    10-21-2016
    Location
    Vancouver Island
    MS-Off Ver
    2010
    Posts
    17

    Re: Populate Calendar w/multiple dates/times

    Thanks Pete!

    For the curious... here is the 'mostly' finished file... Still tweaking it here and there...
    There are quirks in it, but I can make it all work!

    Thanks again to everyone!

    (The dates are just random and used for testing...)
    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] Auto-Populate Calendar Dates
    By ajlax4 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 12-05-2017, 04:11 PM
  2. Auto Populate Calendar based on rental dates
    By NickolasH in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2017, 11:45 AM
  3. Replies: 1
    Last Post: 03-09-2016, 06:39 AM
  4. Auto-populate calendar dates
    By zturtles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2013, 09:44 PM
  5. Auto populate vacation calendar dates per employee
    By boxermack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-17-2013, 11:47 AM
  6. Populate Calendar with List of Dates
    By akmiao in forum Excel General
    Replies: 15
    Last Post: 09-30-2011, 01:38 PM
  7. Populate Calendar From List of Dates
    By atopher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2011, 07:19 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