+ Reply to Thread
Results 1 to 6 of 6

Date formula with text in same cell but using previous month not current month

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

    Date formula with text in same cell but using previous month not current month

    Hi

    I have put the following forumla in to my spreadsheet

    ="Scores"&" "&TEXT(TODAY(),"mmmm yyyy")

    Which currently gives me Scores October 2012 but I need it to show the previous month not the current month.

    So Scores September 2012

    I have tried putting in a -1 in various places but cant seem to get it to work.

    Is there a better formual to use with the text

    Thanks

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,286

    Re: Date formula with text in same cell but using previous month not current month

    Try this

    ="Scores "&TEXT(TODAY()-DAY(TODAY()),"mmmm yyyy")

  3. #3
    Forum Moderator 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: Date formula with text in same cell but using previous month not current month

    Try

    ="Scores"&" "&TEXT((EDATE(TODAY(),-1)),"mmmm-yyyy")
    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.

  4. #4
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,286

    Re: Date formula with text in same cell but using previous month not current month

    You can even use

    =TEXT(TODAY()-DAY(TODAY()),"""Scores ""mmmm yyyy")

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    22,866

    Re: Date formula with text in same cell but using previous month not current month

    You could do this:

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

    Hope this helps.

    Pete

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

    Re: Date formula with text in same cell but using previous month not current month

    Thanks guys much appreciated.

    Such a simple change to the forumla (I could kick myself for not seeing what I needed to do)

    Thanks again
    Tracy

+ 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