+ Reply to Thread
Results 1 to 6 of 6

How to get the date of 3 months ago from today?

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    How to get the date of 3 months ago from today?

    Hello Sir,

    I have to figure out the date of 3 months ago from today. The rule is:

    1) if today is the month end (e.g. 30/06/2013), then 3 months ago will also be the month end (e.g. 31/03/2013).

    2) if today is not the month end (e.g. 10/06/2013), then 3 months ago will have the same day (e.g. 10/03/2013). But this has some exceptional case, because some month has 30th while other month does not. For example, if today is 30/05/2013, then 3 months ago will be in February which does not have 30th. In this case, just make it as the month end of 3 months ago.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get the date of 3 months ago from today?

    Try

    =EDATE(A1,-3)

    OR

    =EDATE(today(),-3)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: How to get the date of 3 months ago from today?

    Please Login or Register  to view this content.
    Last edited by rcm; 08-30-2013 at 06:34 AM.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get the date of 3 months ago from today?

    Quote Originally Posted by rcm View Post
    Please Login or Register  to view this content.
    .....................

  5. #5
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: How to get the date of 3 months ago from today?

    Thanks, Fotis1991. Based on yours, I made it as:

    =IF(A1=EOMONTH(A1,0),DATE(YEAR(A1),MONTH(A1)-2,),EDATE(A1,-3))

    If the month is 30/04/2013, then I want the 3 months ago to be 31/01/2013 which is also the month end.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get the date of 3 months ago from today?

    You are welcome and thanks for the feed back.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Fri six months ago from today
    By needhelp13 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2013, 01:56 PM
  2. If date is lies in between last 6 months from today mark "Yes"
    By Zeba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2013, 03:24 AM
  3. IF TODAY() falls between certain months
    By biddum in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2012, 10:33 AM
  4. Filling a column with months from a start date to today
    By a.mack123 in forum Excel General
    Replies: 4
    Last Post: 06-03-2010, 01:22 AM
  5. Today + 3 months
    By Roadie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2005, 06:34 AM

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