+ Reply to Thread
Results 1 to 4 of 4

Date, Weekdays

  1. #1
    Registered User
    Join Date
    09-11-2005
    Posts
    2

    Angry Date, Weekdays

    Hi!

    Could you please help me with date formula.

    I need to enter 2 days before but it must be a weekday.
    e.g 12 Sep 2005 must show 9 Sep 2005 and also 13 Sep 2005 must show 9 Sep 2005.

    What I have is NOW()-2 , but it shows 10 Sep 2005 which is wrong.

  2. #2
    PeterAtherton
    Guest

    RE: Date, Weekdays



    "Heckstein" wrote:

    >
    > Hi!
    >
    > Could you please help me with date formula.
    >
    > I need to enter 2 days before but it must be a weekday.
    > e.g 12 Sep 2005 must show 9 Sep 2005 and also 13 Sep 2005 must show 9
    > Sep 2005.
    >
    > What I have is NOW()-2 , but it shows 10 Sep 2005 which is wrong.
    >

    Hi

    Try
    =IF(WEEKDAY(TODAY())=6,TODAY()-1,IF(WEEKDAY(TODAY())=1,TODAY()-2,TODAY()-2))

    Regards
    Peter

  3. #3
    Sandy Mann
    Guest

    Re: Date, Weekdays

    =IF(WEEKDAY(TODAY(),2)<3,TODAY()-1-WEEKDAY(TODAY()),TODAY()-2)

    --
    HTH

    Sandy
    [email protected]
    Replace@mailinator with @tiscali.co.uk


    "Heckstein" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi!
    >
    > Could you please help me with date formula.
    >
    > I need to enter 2 days before but it must be a weekday.
    > e.g 12 Sep 2005 must show 9 Sep 2005 and also 13 Sep 2005 must show 9
    > Sep 2005.
    >
    > What I have is NOW()-2 , but it shows 10 Sep 2005 which is wrong.
    >
    >
    > --
    > Heckstein
    > ------------------------------------------------------------------------
    > Heckstein's Profile:
    > http://www.excelforum.com/member.php...o&userid=27153
    > View this thread: http://www.excelforum.com/showthread...hreadid=466653
    >




  4. #4
    Ron Rosenfeld
    Guest

    Re: Date, Weekdays

    On Sun, 11 Sep 2005 14:26:18 -0500, Heckstein
    <[email protected]> wrote:

    >
    >Hi!
    >
    >Could you please help me with date formula.
    >
    >I need to enter 2 days before but it must be a weekday.
    >e.g 12 Sep 2005 must show 9 Sep 2005 and also 13 Sep 2005 must show 9
    >Sep 2005.
    >
    >What I have is NOW()-2 , but it shows 10 Sep 2005 which is wrong.


    =WORKDAY(TODAY()-1,-1)

    Note that with this function, you can optionally add a list of Holidays.


    If the WORKDAY function is not available, and returns the #NAME? error, install
    and load the Analysis ToolPak add-in.

    On the Tools menu, click Add-Ins.
    In the Add-Ins available list, select the Analysis ToolPak box, and then click
    OK.
    If necessary, follow the instructions in the setup program.

    --ron

+ 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