+ Reply to Thread
Results 1 to 2 of 2

Compute your own holidays

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Compute your own holidays

    Excel formulas such as NETWORKDAYS and WORKDAYS use holidays. You can type these out manually but if your application goes on long enough (I have a couple of apps that have been used in one form or another for over a decade), the application eventually outlives the holiday list. One solution is to compute the holiday list dynamically. For my apps this means last year, this year and next year's holidays.

    The attached has a "minimalist" list of holidays. If you need to compute more, see this blog: http://www.cpearson.com/excel/DateTimeWS.htm.

    What I do is open this sheet in the same instance of Excel with the application that needs the list, and copy and paste it in. I call Range A1:A21 "Holidays" and go on with programming. Since the dates I use are after 1906 I am not concerned with the formulas mistaking the years for holiday dates.

    Easter (Good Friday, Mardi Gras) is a toughie. You will have to look on the web for an application that calculates the dates for it.

    Also the application doesn't address the case where holidays are based on a lunar calendar. I'd like to see tools to manage that.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Compute your own holidays

    Quote Originally Posted by dflak View Post
    Easter (Good Friday, Mardi Gras) is a toughie. You will have to look on the web for an application that calculates the dates for it.
    Here is a neat Easter formula from http://spreadsheetpage.com/index.php...lating_easter/:


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (It assumes A1 contains a year.)

+ 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. Replies: 1
    Last Post: 01-19-2017, 03:43 PM
  2. [SOLVED] How to include holidays in monthly time sheet that appears as "H" for holidays -
    By royeedominsy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2015, 07:59 AM
  3. How to include holidays in monthly time sheet that appears as H for holidays -
    By royeedominsy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-08-2015, 01:53 AM
  4. Replies: 1
    Last Post: 08-13-2015, 08:37 AM
  5. Replies: 3
    Last Post: 08-06-2014, 09:13 PM
  6. Replies: 7
    Last Post: 11-16-2008, 05:48 PM
  7. [SOLVED] How do I compute ratios?
    By brenflyd in forum Excel General
    Replies: 9
    Last Post: 05-01-2005, 07:06 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