+ Reply to Thread
Results 1 to 6 of 6

formula to get date Today-1 (Only working days)

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    53

    Thumbs up formula to get date Today-1 (Only working days)

    Hi,

    I work on financial trades sheet. I want a formula which gives 1 day before date i.e if its Fri, July 02, 2010 the formula shuld give me Thu, July 01, 2010 . The formula
    PHP Code: 
    =TODAY()-
    works fine but on each monday it show Sunday's date. I want the formula to skip the weekends and show the friday's date.

    This is because we work on value day- 1(vd-1) basis as the the market for trading is open from Mon to fri.

    Any help is appreciated.

    Thanks
    Chetan

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: formula to get date Today-1 (Only working days)

    Try this

    =WORKDAY(TODAY(),-1)

    Then format the cell for date.

    This may be part of the analysis Toolpack add-in
    Goto Tools>Add-ins>select the Analysis Toolpac

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: formula to get date Today-1 (Only working days)

    Or try:

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

    cheers
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: formula to get date Today-1 (Only working days)

    Or this:

    =TODAY()+IF(WEEKDAY(TODAY(),1)>2,-1,-WEEKDAY(TODAY(),1)-1)

  5. #5
    Registered User
    Join Date
    07-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: formula to get date Today-1 (Only working days)

    Thanks there, its working...

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: formula to get date Today-1 (Only working days)

    Quote Originally Posted by Chetan Chauhan View Post
    Thanks there, its working...
    What is working?

+ 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