+ Reply to Thread
Results 1 to 4 of 4

Formula to adjust a weekend date to the previous Friday...

  1. #1
    Registered User
    Join Date
    11-06-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    26

    Formula to adjust a weekend date to the previous Friday...

    I have the following formula: =IF(E54="PCS",H54-183,H54-249)

    This will give me a specific date. Sometimes this date falls on a Saturday, Sunday or Holiday. Is there a way to build the formula to check if the date is a Saturday, Sunday or Holiday and automatically adjust to the nearest previous Friday?

    TIA!!!
    Crystal

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to adjust a weekend date to the previous Friday...

    Try

    =IF(E54="PCS",WORKDAY(WORKDAY(H54-183,1),-1),WORKDAY(WORKDAY(H54-249,1),-1))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    11-06-2009
    Location
    Arizona
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Formula to adjust a weekend date to the previous Friday...

    Worked great! Thank you!

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

    Re: Formula to adjust a weekend date to the previous Friday...

    This version should also work.....

    =WORKDAY(H54-IF(E54="PCS",183,249)+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)

Similar Threads

  1. 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
  2. Replies: 9
    Last Post: 12-19-2012, 01:06 AM
  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. [SOLVED] 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

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