+ Reply to Thread
Results 1 to 4 of 4

Need help with auto populating calendar to exclude weekends

  1. #1
    Registered User
    Join Date
    03-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    4

    Need help with auto populating calendar to exclude weekends

    I have a calendar which is 1 tab per month any year standard calendar. I have additional sheets. One for data to pull from. On this sheet I have the list of training programs and their duration's and type of program to make it easier when we decide to change or add/remove programs. Another sheet is for time entry where we will be choosing the program, using vlookup to populate the duration, a free form start date, a calculated end date, start time, end time and location. The start/end time and location will be used to produce a weekly calendar later on. I have the end date setup ( Or I am trying to) make it only calculate workdays (Excluding Sat. & Sun.) But I need Sat & Sun on the calendar still. The calculation seems to be a little off. It states a start date of 1-1-19 with a 4 day training will end on 1-6-19 when I use workday(Start Date,Duration)-1 So thats one problem

    The next problem is that to populate the calendar, I am not sure how to make the dates skip weekends to fill it. I searched the forums but I cannot figure it out. (I'm horrible with date functions in excel)

    I have the auto populate data on a sheet which will be hidden. it has..

    A Column -Days =IF('Time Entry'!D3="",0,IF('Time Entry'!E3="",1,1+'Time Entry'!E3-'Time Entry'!D3))
    B Column -Cumulative =IF(A3="","-",A3+B2)
    D Column - Row =IF(ROWS($2:2)>MAX(B:B),"-",MATCH(ROWS($2:2)-1,B:B)+1)
    E Column - Displayed =IF(OR(D2="",D2="-"),"",INDEX('Time Entry'!B:B,D2)&IF(INDEX('Time Entry'!B:B,D2)="",""," "))
    F Column - Date =IF(E2="","",INDEX('Time Entry'!D:D,D2)+COUNTIF(D$2:D2,D2)-1)
    G Column - Reference =IF(F2="","-",F2&"_"&COUNTIF(F$2:F2,F2))

    I think the problem lies here but I have no clue where or how to make it adjust to skip weekends.

    Any help would be appreciated. Im new to the forums so I apologize if I an doing this wrong. I'm also on office 365
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Need help with auto populating calendar to exclude weekends

    Please try
    a. =workday(Start Date,Duration-1)

    b. Hidden Data
    D2
    =AGGREGATE(15,6,ROW('Time Entry'!$C$3:$C$14)/('Time Entry'!$C$3:$C$14>=COLUMN($A$1:$Z$1)),ROWS(E$2:E2))
    E2
    =INDEX('Time Entry'!B:B,D2)&""
    F2
    =IF(E2="","",WORKDAY(INDEX('Time Entry'!D:D,D2),COUNTIF(D$2:D2,D2)-1))
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help with auto populating calendar to exclude weekends

    Another option
    Hidden Data F2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    03-18-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    4

    Thumbs up Re: Need help with auto populating calendar to exclude weekends

    OMG Thank You!
    You guys are life savers.. was twiddling with this for hours.
    I'm going to be working on the weekly schedule later this week. I'll be sure to check back in if I need help with that.
    Awesome work!

+ 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] help auto populating a calendar
    By atrout in forum Excel General
    Replies: 18
    Last Post: 03-13-2019, 04:26 PM
  2. Calendar dates auto populating
    By Jamesraywebber85 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2018, 08:43 AM
  3. Auto Populating calendar
    By VMurtsell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2017, 04:55 PM
  4. Auto Populating Calendar Isssue
    By Tennessee83 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2017, 08:18 AM
  5. Auto-Populating Calendar
    By emk123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2017, 07:29 AM
  6. Auto Populating Calendar
    By NEWBie32 in forum Excel General
    Replies: 2
    Last Post: 01-19-2016, 06:56 PM
  7. Auto Populating Calendar
    By slesensky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-18-2014, 09:57 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