+ Reply to Thread
Results 1 to 4 of 4

Transforming weekend date to previous Friday

  1. #1
    Forum Contributor
    Join Date
    03-26-2014
    Location
    Kentucky
    MS-Off Ver
    Excel 2013
    Posts
    128

    Transforming weekend date to previous Friday

    Is there a code or formula that would convert a weekend date to the previous friday at 11:59pm? For example: in cell A1 I have "5/23/15 8:37", which is a saturday. How could I have that number transformed into "5/22/15 23:59", which is the friday prior to that saturday? I have several other dates in my list that do not end on the weekend and those need to stay the same. Any help would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Transforming weekend date to previous Friday

    Hello,

    Here's a suggestion:
    Please Login or Register  to view this content.
    Last edited by GC Excel; 05-27-2015 at 04:56 PM. Reason: correct formula
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

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

    Re: Transforming weekend date to previous Friday

    Try this formula

    =IF(WEEKDAY(A1,2)>5,WORKDAY(A1,-1)+"23:59",A1)
    Audere est facere

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Transforming weekend date to previous Friday

    Are all the dates is the same column?
    Do you want to replace the date or use an extra column with the new date value
    - Battle without fear gives no glory - Just try

+ 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. Formula to adjust a weekend date to the previous Friday...
    By joencrystal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-21-2013, 05:25 PM
  2. Display a previous date without weekend and holidays
    By jamewoong in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 09:47 PM
  3. Change Weekend Date To The Previous Friday
    By MarkMcCann in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2012, 09:45 AM
  4. How do I set NETWORKDAYS to regard friday and saturday as weekend
    By Shay.C. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2006, 03:29 AM
  5. date of last friday of previous month
    By tkaplan in forum Excel General
    Replies: 7
    Last Post: 11-14-2005, 02:10 PM

Tags for this Thread

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