+ Reply to Thread
Results 1 to 3 of 3

formula for prior month & year of a month end date.

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    formula for prior month & year of a month end date.

    I need a formula to return the prior month & year based on a month end date.

    For example:

    In Cell D2: 08-31-07 & cell D2 is formatted for mm/dd/yy

    In Cell L18: =TEXT(D2, "mmm") & RIGHT(YEAR(D2),2)

    Returns: Aug07

    I need: Jul07

    For:
    01-31-07 need Dec06
    02-28-07 need Jan07
    03-31-07 need Feb07
    etc

    Thanks a million for all your help so far. mikeburg

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi Mike

    How about:

    =TEXT(DATE(YEAR(D2),MONTH(D2),0),"mmmyy")

    Richard

  3. #3
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    works great!

    Thank you for your help. mikeburg

+ 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