+ Reply to Thread
Results 1 to 5 of 5

Auto month entry

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    Oxford, England
    MS-Off Ver
    Excel 2003, 2007 2010
    Posts
    28

    Auto month entry

    On a spreadsheet I am working on I would like the month / year to enter automaticaly.

    The month is to be the month previous to the month that I open the spreadsheet.

    Example working on spreadsheet in October but report is for September data.

    Would a IF formula work

    The current formula is =TODAY() which pulls up current month I need it to put in the previous month.

    Hope that makes sense.

    Thanks in advance
    Last edited by Tracyann; 10-12-2011 at 04:17 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Auto month entry

    This formula would display the "name" of the prior month:

    =TEXT(EOMONTH(TODAY(),-1),"MMMM")
    _________________
    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
    07-29-2011
    Location
    Oxford, England
    MS-Off Ver
    Excel 2003, 2007 2010
    Posts
    28

    Re: Auto month entry

    Thanks so much works a treat

  4. #4
    Registered User
    Join Date
    12-24-2009
    Location
    Istanbul
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Auto month entry

    try this one,

    =TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())-1,1),"mmmm")

    Couldn`t see sorry

  5. #5
    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: Auto month entry

    Quote Originally Posted by Tracyann View Post
    On a spreadsheet I am working on I would like the month / year to enter automaticaly.

    The month is to be the month previous to the month that I open the spreadsheet.

    Example working on spreadsheet in October but report is for September data.

    Would a IF formula work

    The current formula is =TODAY() which pulls up current month I need it to put in the previous month.

    Hope that makes sense.

    Thanks in advance
    Good morning

    Try this: =(MONTH(TODAY()))-1
    I hope to be the answer yhat you are looking for.
    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.

+ 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