+ Reply to Thread
Results 1 to 5 of 5

Automatic Date Updates (excluding weekends)

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Automatic Date Updates (excluding weekends)

    HI all -

    I have a spreadsheet that I am looking to fully automate. It's a monthly spreadsheet (so 12 in a year). Column A has the date of the month going across the row. There is a date in between so there is 4 blank cells (rows) between dates. I would like to find the date excluding weekends. So M-F for each month. The day of week changes by year, so that would be challenge as well. Any ideas?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,996

    Re: Automatic Date Updates (excluding weekends)

    I am confused by your language. Columns are vertical,... rows are horizontal. So i don't understand "Column A has the date of the month going across the row. "

    So... Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-22-2015
    Location
    Eau Claire, WI
    MS-Off Ver
    2010
    Posts
    65

    Re: Automatic Date Updates (excluding weekends)

    Sorry about that. That is confusing. Really what I want is for the date to auto populate but always exclude the weekends. Thanks for the help. If there was a function built in where all I needed to do was update the year and then the dates auto populate, that would be awesome.

    Thanks!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Automatic Date Updates (excluding weekends)

    In the attached workbook cell B1 of the 'Jan' sheet establishes the first weekday of the year using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    On the 'DailyAdds_Scrubs' sheet cell B1 references the previous value and establishes the first weekday of April using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note that the '4' in the April formula denotes the month number and will need to be changed for each of the months, i.e. Feb = 2 etc.
    The remaining weekdays for the month of April are displayed using the following formula which is copied to each 5th cell in row one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Sheet 1 is just a test sheet, however I decided to leave it so as to check the weekdays of the various months.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,996

    Re: Automatic Date Updates (excluding weekends)

    Hi. I didn't seem to get a notification when you posted your sheet. However, here's one possible way.

    Enter the start date (in full) in A1. In F1, enter this formula:

    =IFERROR(OFFSET($A$1,,IF(MOD((COLUMNS($F:F)-1),5)=0,5*INT((COLUMNS($F:F)-1)/5),""),,)+CHOOSE(WEEKDAY(A1+1),2,1,1,1,1,1,3),"")

    then copy across. It increments by one working day every 5th column. The intervening cells asre blank.
    Attached Files Attached Files

+ 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. Formula to calculate date excluding weekends
    By Saky in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-18-2015, 02:23 AM
  2. [SOLVED] sum value based on date...excluding weekends and holidays
    By greggatz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2015, 05:17 PM
  3. formula for commit date minus completion date excluding weekends
    By jtmayo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2012, 08:42 PM
  4. Replies: 2
    Last Post: 06-06-2012, 02:07 PM
  5. Excluding weekends from a date range
    By Timjor in forum Excel General
    Replies: 2
    Last Post: 02-09-2012, 02:58 PM
  6. display date, excluding weekends & holidays
    By emueller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2008, 03:55 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