+ Reply to Thread
Results 1 to 6 of 6

Thread: Dates

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dates

    I need to dates in two columns - one for record date and the other for ex date. The record date is one day before the ex date. Rather than go manually and minus one day away from the record date for the ex date can i do a formula for this?

    Hopefully i havent confused everyone and you know what i need.

    Thanks again - newbie excel user

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Dates

    A1 - Record Date
    B1: =IF(A1>0, A1-1, "")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Dates

    Thanks for that.

    But just say I want to use only business days i.e monday to friday?

  4. #4
    Valued Forum Contributor
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    455

    Re: Dates

    Try:
    =IF(A1<=0,"",WORKDAY( A1,-1))
    Click the star icon in left-corner of my post if you find my post userful!

    Quang PT
    quangphanidico@yahoo.com
    PM me: Y!M: quangphanidico

  5. #5
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,165

    Re: Dates

    =if(and(A1>0,Weekday(A1,1)<>2),A1-1,A1-3). This formula assumes that the record date would always be a Monday through Friday.

  6. #6
    Registered User
    Join Date
    04-27-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Dates

    i think we can even do this with the simpler formula like =A1-1 and foramat the cell into date format that's it

    Shridhar

+ 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.2.0