+ Reply to Thread
Results 1 to 6 of 6

Showing a decline in Date/Month based on previous cell

  1. #1
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Showing a decline in Date/Month based on previous cell

    In Cell A1 I am using the current date function =NOW()
    I am formatting it to show JANUARY-2014 (mmmm-yyyy)

    In Cell A2,A3,A4 etc, I want to show the previous cell minus one month, basically have it show A2 to show, DECEMBER-2013, A3 to show NOVEMBER-2013 etc.

    I found that something simple as =A1-1 would not work

    Thanks for any help.

    Nick
    Last edited by avidcat; 01-25-2014 at 09:40 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Showing a decline in Date/Month based on previous cell

    in A3

    =EDATE(A2,-1)

    and drag it down

    A
    2
    December-2013
    3
    November-2013
    4
    October-2013


    Format cell as Custom, mmmm-yyyy
    Last edited by AlKey; 01-25-2014 at 09:27 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Showing a decline in Date/Month based on previous cell

    I found that something simple as =A1-1 would not work
    to understand why this did not workm you need to understand how excel treats dates. A date in excel is nothing more than a value of x-days from 1/1/1900. So although excel displays today's date as 1/25/2014, behind that it just 41664

    So adding 1 to that will take it to 41665, which formats to 1/26/2014

    Also, if you only wantthe date, I would use =TODAY(), not =NOW(). =TODAY() returns just today's date, but =NOW() returns the date and time
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Showing a decline in Date/Month based on previous cell

    Thank you both for helping me understand this and the solution.

    Nick

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Showing a decline in Date/Month based on previous cell

    Happy to help, and thanks for the feedback

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Showing a decline in Date/Month based on previous cell

    You're welcome and thank you for your feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  2. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM
  3. Display end of month date for previous month
    By erikwvb in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 01:22 PM
  4. Return to previous month based on cell value
    By herukuncahyono in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-29-2010, 10:00 PM
  5. Replies: 3
    Last Post: 01-09-2010, 08:42 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