+ Reply to Thread
Results 1 to 8 of 8

Only want Friday dates

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Only want Friday dates

    Hi, I have a spreadsheet that have a series of dates for the whole year of 2012 and some in 2013. I need a formula to give me a current Friday date base on the date shown in the spreadsheet. Based on a seven day week Sat thru Fri. See example below, column 2 is the Friday date.

    11/1/12 --> 11/2/12
    11/12/12 --> 11/16/12
    11/14/12 --> 11/16/12
    5/21/12 --> 5/25/12
    5/28/12 --> 6/1/12
    7/1/12 --> 7/6/12

    Thanks,

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

    Re: Only want Friday dates

    If A1 contains a date you can use one of these formulas to get the following Friday

    =A1+8-WEEKDAY(A1+2)

    or

    =A1+7-WEEKDAY(A1+1)

    These differ only when A1 is a friday, the former will return the following Friday, the latter the same date as A1
    Audere est facere

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Only want Friday dates

    =7-WEEKDAY(A1,16)+A1

    I like Daddylonglegs answer....this is what I came up with....the WEEKDAY function has an option to allow for different start days for the beginning of the week....HTH....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Only want Friday dates

    Hi West7711,

    Here's an UDF:

    Please Login or Register  to view this content.
    Directions for running the routine(s) just supplied

    Copy the code to the clipboard

    Press ALT + F11 to open the Visual Basic Editor.

    Open a macro-enabled Workbook or save your Workbook As Macro-Enabled

    Select “Module” from the Insert menu

    Type "Option Explicit" then paste the code under it

    Then in the cell where you want the date type "=GetFriday(H23)" or wherever the cue date is
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,769

    Re: Only want Friday dates

    Or this one:
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Registered User
    Join Date
    04-17-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Only want Friday dates

    Thanks!

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Only want Friday dates

    Hi West7711

    Or another way, assuming your data is in A1:A6, in B1 & copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Only want Friday dates

    Hi Kevin - just a thought as you are new - it is usually suggested that you mark the thread solved if in fact it is....there is a thread tool dropdown at the top of the thread on the right side....have a great day....

+ 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