+ Reply to Thread
Results 1 to 10 of 10

Date formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Date formula

    Hello,

    I am trying to write a date formula to automatically update the date on a worksheet to the previous business day. I have accomplished that much with the formula I came up with which is "=TODAY()-IF(WEEKDAY(TODAY())=2,3,1)"; however, I need to exclude holidays (1/1/10, 5/31/10, 7/4/10, 9/6/10, 11/25/10 and 12/25/10) from this formula and I have had a difficult time in writing the formula to do that....

    Can you anyone help with how I should write this formula?

    I need the formula to automatically update to the previous business day and exclude holidays... HELP!!

    Any assistance is greatly appreciated!!!!!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Date formula

    Welcome to the forum.

    =WORKDAY(TODAY(), -1, A1:A10)

    ... where A1:A10 contains a list of holidays as Excel dates.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date formula

    Looks like this is working Thank you so much for your help

  4. #4
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date formula

    Ok. I am still having a problem with this formula. I am using a shared worksheet that is saved on a network drive at work. When my co-worker opens the file, the date field is showing as "?NAME" instead of auto filling the previous business day. I even went to her PC and found that the formula is there but it does not show the date. Can you help??

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Date formula

    Tools > Add-ins > Analysis Toolpak

  6. #6
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date formula

    I checked this and I have it selected as one of the add-ins...

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Date formula

    Your computer isn't the problem.

  8. #8
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date formula

    ok so I need to verify that anyone that views this file has this add-in selected? Is that correct?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Date formula

    Everyone using a version of Excel pre 2007, yes.

  10. #10
    Registered User
    Join Date
    08-30-2010
    Location
    Toledo, OH
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Date formula

    That solved the problem... we use excel 2003. Thanks for your patience and help with this!!

+ 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