+ Reply to Thread
Results 1 to 5 of 5

Weekend and Holiday Exclusion From Count

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Weekend and Holiday Exclusion From Count

    Greetings!

    Looking for a formula that will return a 0 (ZERO) for any date listed in a column that is a Saturday or Sunday, or any date listed as a holiday in a different column. Likewise, looking for a numeric 1 returned if the date is a Monday, Tuesday, Wednesday, Thursday or Friday, but not a designated holiday.

    The holiday listing could be more than one date.

    The attached provides a number of dates in column A, (which may not necessarily be sorted lowest to highest and each date will likely be listed more than once). The desired result is in column B. Looking for a formula in column C that will produce the desired result.

    Note: The ZEROs in the holiday chart provide a place to enter additional dates. They could be designated as a blank entry if not used.

    Ultimately, the formula will be imbedded in a formula as an if condition, if that matters.

    Any Ideas? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,368

    Re: Weekend and Holiday Exclusion From Count

    Try this in C4 copied down:

    =NETWORKDAYS(A4,A4,$F$4:$F$5)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Weekend and Holiday Exclusion From Count

    =NETWORKDAYS.INTL(A4,A4,1,$F$4:$F$10)

    Copy down.

  4. #4
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Weekend and Holiday Exclusion From Count

    Thanks. Perfect. Will mark as solved. Enjoy your day.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,368

    Re: Weekend and Holiday Exclusion From Count

    You're welcome!

+ 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. create plan for point analysis accoding to weekend and holiday
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2016, 02:18 PM
  2. [SOLVED] Long Weekend Formula for Holiday
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-27-2015, 04:30 AM
  3. Weekend and Holiday analysis with Time
    By leenie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2014, 12:46 PM
  4. [SOLVED] Sum Weekend and Holiday Values Based on a Date Range in another Cell
    By GiGi320 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2012, 11:53 AM
  5. how to sum day if it falls in a weekend or holiday?
    By jgomez in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-30-2011, 01:54 PM
  6. filter out weekend\holiday days from a pivot table
    By nmss18 in forum Excel General
    Replies: 3
    Last Post: 06-01-2011, 03:10 PM
  7. Time difference - without weekend/holiday
    By blizard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2005, 03:14 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