+ Reply to Thread
Results 1 to 4 of 4

Change Weekend Date To The Previous Friday

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Utrecht
    MS-Off Ver
    Excel 2007
    Posts
    2

    Change Weekend Date To The Previous Friday

    Hi All!

    I am trying to provide stats on data for my work - We have entries which sometimes fall on a weekend but these entries need to be reported as a weekday. From my knowledge the WEEKDAY function will report the following weekday from the weekend day. What I need is for a function to report the previous Friday.

    Example:

    If the entry falls on Saturday 27th October it needs to report as Friday 26th October. The same would apply for all Sundays.

    If you could help I would be very grateful as this one is drying me a tiny bit mental :D Thanks in advance!

  2. #2
    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: Change Weekend Date To The Previous Friday

    Try

    =IF(WEEKDAY(A1)=7,A1-1,IF(WEEKDAY(A1)=1,A1-2,A1))
    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.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,142

    Re: Change Weekend Date To The Previous Friday

    hi MarkMcCann, welcome to the forum. maybe something like:
    =IF(WEEKDAY(A1,2)>=6,A1+5-WEEKDAY(A1,2),A1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Change Weekend Date To The Previous Friday

    You could use WORKDAY function like this

    =WORKDAY(A1+1,-1)
    Audere est facere

+ 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