+ Reply to Thread
Results 1 to 11 of 11

Need Calendar Help

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    san marcos ca
    MS-Off Ver
    O365
    Posts
    6

    Need Calendar Help

    School Dist Calendar.zip

    I need to input school district calendars in a timeline format in excel by week. We have been manually doing it and I know it can be done with formulas. Please help!

    We need to track the days in service and the holidays/breaks, etc., by blacking them out. Is this possible?

    I can't get my sample to upload.

    We have a calendar from 7/27 labeled Monday, Tuesday, Wednesday, Thursday, Friday and then the next week and so on.

    Here are some dates for the first entry:
    Start of School End of School Holiday Fall Break Holiday Thanksgiving Break Winter Break Holiday Spring Break Holiday
    7/27/2015 6/7/2016 9/7/2015 9/21/2015-10/2/2015 11/11/2015 11/23/2015-11/27/2015 12/21/2015-1/8/2016 1/18/2016 3/21/2016-4/1/2016 5/31/2016

    http://i52.photobucket.com/albums/g2...0Calendar2.jpg
    Last edited by sella_rogers; 06-23-2015 at 11:35 AM. Reason: Added file

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Need Calendar Help

    It should be possible but we need your workbook to work on it.
    Can you try again to upload it?
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    san marcos ca
    MS-Off Ver
    O365
    Posts
    6

    Re: Need Calendar Help

    I added the file in a compressed file. See above. Thanks in advance!

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Need Calendar Help

    Here is your file with some modifications and a macro that will do exactly what you asked.
    First, you MUST enter your holiday in date format with 2 numbers for month and day like 01/25/2015-01/30/2015.
    For Holidays that are only one day, the cell content is usually considered as a date and its format is OK
    but for Holidays where you enter 2 dates, you must enter the month and day with 2 numbers.

    Then, your description in column A must match exactly in both sheets.

    I hope it is not an issue for you to use a macro.
    I did this because formulas would have made your file too big and slow and also because
    the formula would have been very comlicated.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    san marcos ca
    MS-Off Ver
    O365
    Posts
    6

    Re: Need Calendar Help

    Thanks for your help but I am having a problem with adding/changing dates.

    I plug the dates in on the spreadsheet and they do not calculate over to the other spreadsheet. Is there a way to update the macros? Not sure how they work since I am used to working with formulas.

    Thanks in advance!

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Need Calendar Help

    See attached workbook.
    I created a command button that will run the macro when you click on it.
    It first resets the interior color of the full table then it scans that Holiday dates sheets to black out
    holiday's dates in the Timeline sheet.
    You can see the VBA code by entering into the Visual Basic Editor which can be done by clicking on the ALT + F11 keys
    at the same time.

    P.S. if you have issues like dates are not blacked out, it can be the date format of row 4 done by the macro before doing the searches. It might be system's specific. So you might have to play with it in the code.

    Hope this helps
    Attached Files Attached Files
    Last edited by p24leclerc; 06-26-2015 at 09:41 PM.

  7. #7
    Registered User
    Join Date
    06-23-2015
    Location
    los angeles
    MS-Off Ver
    office 13
    Posts
    5

    Re: Need Calendar Help

    Hi,

    I have a question for p24leclerc. I used your format and I really liked it. I appreciate your help with this. I'd like nevertheless to add different color in the timeline for each column you have in the input table (Holidays Date). Such as differentiate between Thanksgiving break in orange for example in the Holidays Date table and Fall break in black.

    Thanks in advance for your help.

    Quote Originally Posted by p24leclerc View Post
    See attached workbook.
    I created a command button that will run the macro when you click on it.
    It first resets the interior color of the full table then it scans that Holiday dates sheets to black out
    holiday's dates in the Timeline sheet.
    You can see the VBA code by entering into the Visual Basic Editor which can be done by clicking on the ALT + F11 keys
    at the same time.

    P.S. if you have issues like dates are not blacked out, it can be the date format of row 4 done by the macro before doing the searches. It might be system's specific. So you might have to play with it in the code.

    Hope this helps

  8. #8
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Need Calendar Help

    See the attached workbook.
    The macro will apply the background color you'll put in the Holiday Dates sheet for every column.
    You MUST put a color in this sheet otherwise the Timeline dates will be WHITE.
    See the Holiday Dates sheet for an example.
    It was just a small modification to one line of code to apply the Holiday Dates cell color to the one in Timeline sheet.
    Regards
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-23-2015
    Location
    los angeles
    MS-Off Ver
    office 13
    Posts
    5

    Re: Need Calendar Help

    Quote Originally Posted by p24leclerc View Post
    See the attached workbook.
    The macro will apply the background color you'll put in the Holiday Dates sheet for every column.
    You MUST put a color in this sheet otherwise the Timeline dates will be WHITE.
    See the Holiday Dates sheet for an example.
    It was just a small modification to one line of code to apply the Holiday Dates cell color to the one in Timeline sheet.
    Regards
    Hi,

    I have been playing around with the following sheet just to test and understand it. I unfortunately don't understand why some of the dates are not correctly represented on the timeline on my sheet. Do you have an idea why? @P24leclerc

    thank you!

    Schedule Test.xls

  10. #10
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Need Calendar Help

    The issue comes from the fact that, as surprising as it might be, Excel will not find a date
    if it is not properly represented in the cell.
    That's why some was working and others not.
    I added some comments in the code so you can understand what it is doing.
    Hopes this one will work well for you.
    Regards and sorry for the inconveniences.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-23-2015
    Location
    los angeles
    MS-Off Ver
    office 13
    Posts
    5

    Re: Need Calendar Help

    Thanks a lot! Appreciate the 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. convert 360 calendar integers to normal calendar style dates
    By dmhg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2014, 08:17 PM
  2. Rolling Calendar array will not work for a completely horizontal calendar
    By Michaelwk10 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2014, 05:11 PM
  3. Calendar functions - linking work activities with formatted dates to calendar
    By SKSS in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2012, 06:38 PM
  4. Calendar VBA auto filling week and month based on calendar entry.
    By perrymagic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2011, 02:00 PM
  5. Replies: 0
    Last Post: 03-27-2008, 04:36 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