+ Reply to Thread
Results 1 to 7 of 7

Fri six months ago from today

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    46

    Fri six months ago from today

    How to find what date was Friday six months ago from today? How about what date was Friday 1 year ago from today?

    Thanks for all your help!

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Fri six months ago from today

    ...if today is not a Friday.. do you want the date of the Friday that would fall next? Previous?... o_O

    Gives you the next Friday, 6 month case:


    =6-WEEKDAY((MONTH(TODAY())-6<=0)*DATE(YEAR(TODAY())-1,18-MONTH(TODAY()),DAY(TODAY()))+(MONTH(TODAY())-6>0)*(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY()))))+(MONTH(TODAY())-6<=0)*DATE(YEAR(TODAY())-1,18-MONTH(TODAY()),DAY(TODAY()))+(MONTH(TODAY())-6>0)*(DATE(YEAR(TODAY()),MONTH(TODAY())-6,DAY(TODAY())))


    Next Friday, 1 year ago:

    =6-WEEKDAY(DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())))+DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))
    Last edited by GeneralDisarray; 08-07-2013 at 01:40 PM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    07-24-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Fri six months ago from today

    Yes I want the Friday date from today if today is not Friday? (I can actually do that any day of the week so what if today is Friday - does that matter) So if today is 8/7/2013, six months ago within the week of 2/7/2013 Friday was 2/8/2013. So how can I get the 2/8/2013 in excel?

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Fri six months ago from today

    Try this:

    =CEILING(EDATE(A1,-6)-6,7)+6

  5. #5
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Fri six months ago from today

    k, updated the previous posting (didn't see another reply when I finished the answer).

    Basic Idea:

    6 = the weekday for Friday.

    So, look for the value of: 6 - Weekday(Date(six months ago)) + Date(six months ago)

    If six months ago was Friday then the first 2 terms cancel 6 - Weekday(Date(six months ago)) = 6 - 6 = 0 and you have Date(six months ago)

    If it was not a Friday on the nose, (assume it was a Thursday), then you get: 6 - 5 + Date(six months ago) OR 1+ Date(six months ago).


    EDIT -- Excel has an EDATE() function! Damn... I always reinvent the wheel thank you for that info teethless mama (shouldn't that be "toothless"??)

    Just make sure the cell is formatted how you want the date to appear, otherwise you'll get the serial number for the date.

  6. #6
    Registered User
    Join Date
    07-24-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Fri six months ago from today

    Both work perfect! Thanks GeneralDisarray and Teethless mama!!!

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Fri six months ago from today

    You're Welcome!

+ 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. IF TODAY() falls between certain months
    By biddum in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2012, 10:33 AM
  2. Calculate Number of Months in between from today
    By rosarionyc in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 03:18 PM
  3. [SOLVED] calculating number of months from today
    By JNW in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2005, 05:05 PM
  4. Today + 3 months
    By Roadie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-18-2005, 06:34 AM
  5. sum values between today and 6 months prior
    By Qaspec in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2005, 05:06 PM

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