+ Reply to Thread
Results 1 to 19 of 19

Populate dynamic calendar with tasks based on task frequency

  1. #1
    Registered User
    Join Date
    09-12-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    4

    Populate dynamic calendar with tasks based on task frequency

    Hi,

    I am attempting to build a dynamic calendar in worksheet two that automatically populates tasks, based on the frequency of the task, from the table in worksheet one.

    Day one, week one should be the first Monday of the month. Quarterly should be January, April, July and October. Biannually should be March and September. Some days will have multiple tasks. No tasks fall on a Sunday, Wednesday or Saturday.

    I am unsure of the correct formula to populate the calendar based on the frequency criteria and need some help.

    I have attached my workbook with sample data.

    Thank you in advance!

    Rebecca
    Attached Files Attached Files
    Last edited by ~Rebecca~; 09-20-2021 at 10:11 PM.

  2. #2
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    As the calendar requires a reference per event, then the the "Daily" (Monday/Tuesday/Thursday/Friday) will require 4 entries. Similar logic is required for Odd/Even Weeks and Months.

    A possible answer is to use VBA to generate an extended tasks list [i.e. "convert" daily into 4 references] which meets the needs of the calendar.

    .

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    Some doubts . I have put in Tasks sheet.
    The format in Sheet1 for calendar is ok.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-21-2021 at 05:46 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    From the OP ..

    Quarterly should be January, April, July and October. Biannually should be March and September.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    Thanks JohnTopley. What about the format of calendar. Let us wait.

  6. #6
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    Calendar format is set and event entry in calendar is determined by the Reference which is Date plus underscore "Event number".

    e.g 2 events on 5th January 2021 will have the following references

    44201_1
    44201_2

    Example attached (originator is Pete_UK)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-12-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Populate dynamic calendar with tasks based on task frequency

    Hi John, thank you for your suggestions. I will look into building a VBA.

  8. #8
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    I will look into building a VBA
    Do you mean YOU will do the VBA OR do you still want a response from the forum?

    If you agree a VBA solution is needed, then this thread should be moved to the VBA/Macro forum. A Moderator can do this for you.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    Is it possible to use the the calendar format I have given in my previous post.

  10. #10
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    Thinking aloud, your "Sheet1" could be a possible basis for generating the "Activities" sheet needed by this calendar application. Caution that the number of tasks will grow!

    All the formulae in calendar reference the "Activities" sheet which should remain the prime source of input.

    I produced an "Actvities" sheet some time ago with VBA but it was a somewhat simpler series of events.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    What is Op's opinion.
    Pl see enclosed file.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-21-2021 at 08:07 AM.

  12. #12
    Registered User
    Join Date
    09-12-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Populate dynamic calendar with tasks based on task frequency

    Thank you. I will have a go at writing a VBA script to generate the tasks into an "Activities" worksheet that the calendar can then reference. I can start a new thread in the VBA/Macro forum if I get stuck and need help or would it be better to have this thread moved there?

  13. #13
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    @KVS
    I am not sure the format will work as the "Tasks" are "Type of Tasks" (based on frequency) but my understanding is there can (will!) be multiple "activities" for a given "Type of Task" i.e. every Monday: I visit the Supermarket, do my washing, play Darts in the Evening so 3 activities.

    Unless you are using your table as a "lookup" to match activities with the Task frequencies then the above does not apply [so your solution will certainly work.]

    Equally, I am sure some activities will be changed (added/deleted) so the process needs to be able to re-generate an updated list of activities: in some cases i guess this may be a simple manual change.

    @Rebecca: can you confirm (or not!) the above analysis.
    Last edited by JohnTopley; 09-21-2021 at 09:12 AM.

  14. #14
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    @JohnTopley
    Op is not so explicit in his requirement. Anyway he has decided to go for VBA code. Thank You

  15. #15
    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,147

    Re: Populate dynamic calendar with tasks based on task frequency

    @Rebecca

    Attached is my interpretation of task frequencies based on KVS's form. My Week assignments may be wrong as I get a "problem" with bi-annual in September (no Friday for Week 4).

    The week column is manually entered.

    Please also see post #13 re requirements. Thank you.

    Second file has Week based on 1 st Monday of each month
    Attached Files Attached Files
    Last edited by JohnTopley; 09-21-2021 at 03:12 PM.

  16. #16
    Registered User
    Join Date
    09-12-2021
    Location
    Melbourne, Australia
    MS-Off Ver
    2016
    Posts
    4

    Re: Populate dynamic calendar with tasks based on task frequency

    Hi John,

    Visit the Supermarket, Do my Washing, Play Darts in the Evening, may be entered as three separate tasks with each task occurring on day one (Monday), weekly (every week) and monthly (every month). So each of these tasks would then be generated on 48 occurrences over the course of a year.

    Also, some activities may be changed, added or removed during the year.

  17. #17
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Populate dynamic calendar with tasks based on task frequency

    vertex42 has a very good calendar for free that allows you to input frequency based on all types of things. im not sure im allowed to share the link here but the one to look for is "Monthly Calendar with Holidays"

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    Try this. Different formulas are there for each task. You can add any number of tasks.
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Populate dynamic calendar with tasks based on task frequency

    With slight change to avoid referring first row.
    Month wise sheets can be done.
    For new month copy the sheet. Change the date in A1
    More tasks can be added.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 09-22-2021 at 02:01 AM.

+ 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. Dynamic interactive calendar populated by userform
    By KtB73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2020, 10:03 AM
  2. Assigning tasks to team with each task having specific weights
    By chrysocollamalachite in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2019, 05:47 AM
  3. Excel to record tasks done and assign a task to someone else
    By rahul_ferns76 in forum Excel General
    Replies: 5
    Last Post: 11-04-2018, 04:10 AM
  4. Distributing work across the calendar days based on effort taken per task
    By sriramdh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2014, 02:11 AM
  5. Chart only ONE task as percentage of ALL tasks? PLEASE HELP!
    By PWM in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-23-2014, 03:19 AM
  6. Put tasks into Calendar after my module generates the Calendar
    By wrightyrx7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 10:20 AM
  7. Task Planner - read out list of tasks for different employees
    By Jilseponie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2013, 09:11 AM

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