+ Reply to Thread
Results 1 to 6 of 6

Calculating The Last Tuesday Of Every Month

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    cornwall
    MS-Off Ver
    Excel 2010
    Posts
    7

    Calculating The Last Tuesday Of Every Month

    Hi,

    I was just wandering if there's a way to calculate the last Tuesday of every month. I was looking online and probably being alittle dense. If you could point me in the right direction or possibly share a formula thankyou.

    Sean

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculating The Last Tuesday Of Every Month

    If you have today's date in A1 (or, indeed, any date) then you can get the last Tuesday of last month in A2 with this formula

    =A1-DAY(A1)+1-WEEKDAY(A1-DAY(A1)+5)

    If you copy that down then you'll get all the previous last Tuesdays in reverse order.

    If you want the last Tuedays in the future then put this formula in A3 and copy down

    =A2+35-7*(DAY(A2+35)<8)
    Audere est facere

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

    Re: Calculating The Last Tuesday Of Every Month

    Try this

    =EOMONTH(A2,0)-WEEKDAY(EOMONTH(A2,0),2)+2

  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: Calculating The Last Tuesday Of Every Month

    With a date in A1, this will gines you the last Tuesday of this month.

    =DATE(YEAR(A1),MONTH(A1)+1,0)+MOD(-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,0),2)-2,-2)
    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.

  5. #5
    Registered User
    Join Date
    08-05-2012
    Location
    USA
    MS-Off Ver
    excel 2010
    Posts
    1

    Re: Calculating The Last Tuesday Of Every Month

    That only gave me the last DAY of the month, not the last Tuesday.

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,600

    Re: Calculating The Last Tuesday Of Every Month

    chakakhan8000,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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