+ Reply to Thread
Results 1 to 7 of 7

Calendar Populate between dates

  1. #1
    Registered User
    Join Date
    07-12-2022
    Location
    Staffordshire
    MS-Off Ver
    365
    Posts
    14

    Calendar Populate between dates

    Can anyone help please. I've tried IFAND, IFOR over and over again and I've not been successful.

    I'm looking for a formula that will self populate the calendar as per the attached.

    Any help much appreciated please.

    Kind Regards


    Martin
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-27-2020
    Location
    Manchester, UK
    MS-Off Ver
    Office 365
    Posts
    21

    Re: Calendar Populate between dates

    Hi Martin,

    Your request is a little unclear, so I've made a few assumptions...

    Assuming that each row relates to a specific task (i.e. row 5 pertains to one task, (say, task A) and row 6 pertains to another (say, task B). If that is the case, I've moved the date summaries up a row so they match for ease, but in practice it doesn't matter where they sit).

    Also assuming that you are looking to return the first and last instances of a task.

    If that is the case, I've attached an example using XLOOKUPS, but amended amended between returning the first and last value (1, -1). You will also need to use a method to distinguish whether the activity is the Check 1 or Final. To do so, I've changed the value to 2 for the final check.

    Hope that helps.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-12-2022
    Location
    Staffordshire
    MS-Off Ver
    365
    Posts
    14

    Re: Calendar Populate between dates

    Many thanks. This would work if cells AO6, AP6 had a 1 entered.

    I need all numbers to be a 1 preferably at end state as the digits are work day counts, but I can add a duplicate sheet and add an IF statement if necessary.

    Have a look at Sheet1, utopia for this project would be to make the first digit a 0 also but again I can add an IF statement in a duplicate sheet if necessary.

    I really appreciate the help and apologies if the ask was not clear. I look forwards to hearing back from you.

    Kind Regards

    Martin
    Attached Files Attached Files

  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,414

    Re: Calendar Populate between dates

    With the table data in columns A to E aligned with row 5, you can use this formula in G5:

    =IF(WEEKDAY(G$3,2)>5,"",IF(AND(G$3>=$B5,G$3<=$C5),1,IF(AND(G$3>=$D5,G$3<=$E5),2,"")))

    Copy across and down as required.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-12-2022
    Location
    Staffordshire
    MS-Off Ver
    365
    Posts
    14

    Re: Calendar Populate between dates

    Many thanks for this. The second set of date values comes out as a 2, is it possible to have this as a 1 also please.
    All of the 1's indicate 1 days work.
    I can duplicate the work sheet and use IF statements to set to 1, but would be better if the formula could handle this.
    Kind Regards, much appreciated.

    Martin

  6. #6
    Registered User
    Join Date
    07-12-2022
    Location
    Staffordshire
    MS-Off Ver
    365
    Posts
    14

    Re: Calendar Populate between dates

    Hello again, sorry I have just adjusted the formula. It works fine. Thank you so much for your help.

  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,414

    Re: Calendar Populate between dates

    Your file showed a 2 for the second set of dates, but hopefully you have changed the 2 to a 1 near the end of the formula if that's what you really wanted.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    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. [SOLVED] Populate SKU codes next to calendar dates
    By bkjacobs in forum Excel General
    Replies: 3
    Last Post: 03-30-2021, 09:19 AM
  2. Replies: 9
    Last Post: 09-20-2020, 08:05 AM
  3. [SOLVED] Pull dates from spreadsheet to populate calendar
    By emilliken in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2020, 01:43 PM
  4. [SOLVED] Auto-Populate Calendar Dates
    By ajlax4 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 12-05-2017, 04:11 PM
  5. Auto-populate calendar dates
    By zturtles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2013, 09:44 PM
  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