+ Reply to Thread
Results 1 to 6 of 6

Reference previous weekday to exclude holidays

  1. #1
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Reference previous weekday to exclude holidays

    I am trying to compare values from this week to last week with the exception that will overlook holidays. ie, from Monday to last Monday. But I am running into an issue if there is a holiday in the week as my formulas are looking for the value 5 days prior to the current day.

    I think the sample will give you a clearer look at the problem.

    Jim O

    MOD: original attachment removed to avoid confusion - see latter post for correct file
    Last edited by Jogier505; 01-18-2010 at 02:16 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Reference previous weekday to exclude holidays

    er that workbook is about dropdowns not dates!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Reference previous weekday to exclude holidays

    I'm with Martin but you might want to consider the WORKDAY function, ie:

    Please Login or Register  to view this content.
    that in red is optional but allows you to specify the range containing public holiday dates....
    change A1 as required...

    Note: pre XL2007 use of WORKDAY requires activation of Analysis ToolPak add-in via Tools -> Addins

  4. #4
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Reference previous weekday to exclude holidays

    Oops!! Sorry about that I hit the wrong key. Lets try that again.

    Jim O
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Reference previous weekday to exclude holidays

    You could perhaps revert to something along the lines of:

    Please Login or Register  to view this content.
    or if you prefer a single formula which can be applied to J3:N4 you could use an Array, ie:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Reference previous weekday to exclude holidays

    DonkeyOte,

    Thanks. The lookup formula is just what I was looking for.

    Again, sorry for the senior moment with the wrong worksheet, mabe I was blinded by the new bright screen!

    Jim O

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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