+ Reply to Thread
Results 1 to 9 of 9

Monthly Calendar using Beginning and End Dates

  1. #1
    Registered User
    Join Date
    06-05-2018
    Location
    Minneapolis, MN
    MS-Off Ver
    365 ProPlus
    Posts
    31

    Monthly Calendar using Beginning and End Dates

    Hello,

    I have a dynamic Monthly calendar that uses some formulas to populate based on the month that is chosen. I originally had this calendar to just look at events that spanned 1 date, so there wasn't a range to look at. Now, my list of events have a start and end date because some go for a month or two and others are just one day. I've tried figuring out how I can adjust the formulas but can't seem to figure it out. Would love if someone could help me with the adjustment or advise me on a better way to go about this all together!

    What I would like to show up on the calendar is the Demand Unit, the Sub-Demand Unit and the Action.

    (ignore the weekly calendar tab)

    Thanks in advance!
    Attached Files Attached Files
    Last edited by heimk008; 10-05-2018 at 09:50 AM.

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

    Re: Monthly Calendar using Beginning and End Dates

    I put a calendar file together recently in Post #7 of this thread:

    https://www.excelforum.com/excel-gen...ates-data.html

    although the OP never got back to me about it.

    This one allows you to select one of three fields to display using a drop-down, and it can display up to 10 events for each day on the calendar in ranges of 10 (also chosen from a drop-down), so effectively it can show up to 100 events per day, in groups of 10. . The month and year can also be chosen from drop-downs (the yellow cells in column K.

    Although this file only caters for single dates, I have done others where a date span can be used (start and end date), and formulae expand the raw data into daily data and can then be used in a similar way. The example in this thread:

    https://www.excelforum.com/excel-for...anges-for.html

    shows how that can be done (with the blue formulae).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-05-2018
    Location
    Minneapolis, MN
    MS-Off Ver
    365 ProPlus
    Posts
    31

    Re: Monthly Calendar using Beginning and End Dates

    Pete,

    Thank you for the reply. I definitely need to be able to at least start with a date range, since I don't want the people using this to have to add the same info for every day (which could be 60 times if it is for 2 months) but I think your second option could be possible if I just put it onto a different tab and hide it. I just need to figure out how to also get it to show the words that I want. I will play around with it for a bit and let you know how it goes!

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

    Re: Monthly Calendar using Beginning and End Dates

    Does this:

    ...Demand Unit, the Sub-Demand Unit and the Action...
    mean that you want to see all three fields at the same time?

    Pete

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

    Re: Monthly Calendar using Beginning and End Dates

    I have put a calendar together for you which does what you want, i.e. takes a date range and displays every day within that range.

    Before I submit it, though, please indicate that you have read this post - otherwise you will not get an automatic notification that someone has posted to your thread and so you might miss it or ignore it.

    Pete

  6. #6
    Registered User
    Join Date
    06-05-2018
    Location
    Minneapolis, MN
    MS-Off Ver
    365 ProPlus
    Posts
    31

    Re: Monthly Calendar using Beginning and End Dates

    Hi Pete,

    Sorry for the delay! I couldn't access the forum yesterday for some reason... I was able to figure something out, but I would love to see the solution you put together and see if it works better than mine!

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

    Re: Monthly Calendar using Beginning and End Dates

    You can see in the first tab of the attached file that I have put your data table in columns I to P. I've made a slight change to this - you had a hidden column which concatenated the first two fields together, but I couldn't see a need for this so I have deleted it. Instead, I have a fourth column which concatenates the first 3 columns together. You can hide this column if you wish.

    To the left of the data table are formulae which expand the date ranges from your table so that there is one record for each day of the range. These formulae have been copied down to row 1000, in order to accommodate more data being added to your table. You can see from cell B12, however, that the 10 entries from your table generate over 450 individual dates, so you might want to copy the formulae down much further. Actually, the first two columns do not need to be copied as far (just enough to cover your data), and you might want to move these to be part of your data table. Column A is the equivalent of your column P, anyway, although I've included a few extra checks, and column B is just a cumulative number of days - the zero in B2 is important, though, for other formulae.

    The columns with my formulae in can be hidden if you want the sheet to look like the one you submitted the other day.

    In the Calendar sheet I display a monthly calendar with Sunday to Saturday across the sheet. If you do not want to see the weekends, then you should hide the appropriate column - do not delete the columns, as this will mess up the formulae. You can select the month and year to display using the data validation drop-downs in cells K5 and K6, and you will see the day representing the first of the chosen month (and obviously the layout for that month) change immediately.

    I have set up the capability to display up to 10 events per day, and the drop-down in cell K10 allows you to select different groups of 10 (i.e. 1 to 10, 11 to 20 etc.), so effectively you can display up to 100 different events per day, though obviously not all at the same time. Judging by your sample data, this might not be something that is important to you, but the facility is there. There is another drop-down in cell K15 which controls what to display - you can choose one from Demand Unit, Sub-Demand Unit, or Activity, but you can also choose to display All three fields together. You will see on the third tab that 2 extra named ranges have been added to control these last two drop-downs. The column widths have been set wide enough to display all the data in one line, so there is no need for wrapping the text.

    You will see in making any changes to the drop-downs, that the display adjusts automatically. The calendar is purely formula-driven, so there is no need to enable macros, and the display will change immediately following any change in the drop-downs.

    So, a few initial things to do like hiding columns that you don't want to see, and then to use the file you just put data in the first sheet and then use the drop-downs in the calendar sheet to control what you see.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-05-2018
    Location
    Minneapolis, MN
    MS-Off Ver
    365 ProPlus
    Posts
    31

    Re: Monthly Calendar using Beginning and End Dates

    Pete,

    This is quite cool! Thank you so much for your help!

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

    Re: Monthly Calendar using Beginning and End Dates

    You're welcome - thanks for the rep.

    Pete

+ 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. Adjusted date of hire
    By tapsmiled in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 07:10 PM
  2. Date range to calendar
    By boxermack in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-17-2013, 11:46 AM
  3. How to limit date range in calendar control?
    By Siglen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2012, 09:14 AM
  4. total to date field adjusted multiple times
    By debrant in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-06-2009, 11:55 PM
  5. How can I have inflation be automatically adjusted on various calendar dates?
    By divashenko@yahoo.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2009, 05:39 PM
  6. formula to indicate date range on a calendar
    By bnwash in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-12-2008, 06:02 PM
  7. Is it possible to ensure Calendar date is in range
    By Robert Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2005, 04:05 PM

Tags for this Thread

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