+ Reply to Thread
Results 1 to 4 of 4

Exclude Certain Days from a Formula

  1. #1
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    156

    Question Exclude Certain Days from a Formula

    Please see attached. The first tab (Holidays) contains English public holidays through to 2020. The next (Unedited Dates) contain formulas that calculate the workdays of each month in a given year by excluding weekends and public holidays (as defined on the Holidays sheet). Cell C6 is the driver of all calculations on this sheet and begins each business year (in this case) on 1st April, therefore as you will see, the last day of the previous month (always 31st March of course) is required for my formula in D6 to correctly begin at the start of April. The formula is then extended to the entire form to ‘catch every possible work day in every month – different months have different amount of work days. The start of each month after April (column C) is formula based by looking at the last value from the previous month. In order for this to work, I have to manually delete any dates at the end of each month that do not belong in that month – see final tab Required Dates as an example. I need to do this each time I change the start year in C6. Is it possible, perhaps using the EDATE function to only return dates that apply to each month in the month rows, so that manual editing is not required? Many thanks for any advice!
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,868

    Re: Exclude Certain Days from a Formula

    You can do EMONTH checking or for instance MONTH checking. for instance D6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,868

    Re: Exclude Certain Days from a Formula

    PS. The one with EOMONTH could be (leave column D as is and for E6 and copy down and right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    By the way - C7 and down shall be corrected to cover all columns to AB, like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-05-2009
    Location
    Cologne, Germany
    MS-Off Ver
    Excel 2010
    Posts
    156

    Red face Re: Exclude Certain Days from a Formula

    Hi Kaper - Genius! Also, thanks for pointing out the range error in my column C!! Thanks so much - really appreciated!!

+ 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. counting difference in days but need to exclude holidays and weekends.
    By SnowBrian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2014, 03:26 PM
  2. [SOLVED] How To Calculate Hours Between 2 or 3 Days Exclude Non Working Hours?
    By Fazrullah Jaini in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2014, 09:54 AM
  3. Days of the week (to exclude Saturdays/Sundays)
    By btk125 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2012, 10:08 AM
  4. Adding Days Exclude Weekends
    By unley in forum Excel General
    Replies: 4
    Last Post: 07-23-2010, 12:13 AM
  5. If statement to include working days, exclude holidays
    By rhudgins in forum Excel General
    Replies: 2
    Last Post: 05-27-2010, 09:46 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