+ Reply to Thread
Results 1 to 6 of 6

If Friday

  1. #1
    Registered User
    Join Date
    05-02-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    If Friday

    I am trying to build and If statement to adjst for weekends. Currently I have

    Start Date Cell D501-Jan-13
    End Date Cell D601-May-14

    Cell D8=D5
    Cell C8=D2
    Cell D9=IFERROR(IF(C8="Friday",IF(D8+2>$D$6," ",D8+2),IF(D8+1>$D$6," ",D8+1))," ")

    In Cell C8 the format is dddd so it shows the day of the week

    What I am trying to do is skip to Monday if a friday though I am also concious of holidays falling on weekdays too and not sure how to acount for this.

    Any ideas anyone?

    Dan

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: If Friday

    Is WORKDAY any good?
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-02-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: If Friday

    I have been trying to factor in work day to the function because it would / should account for what I am trying to do but I'm not sure how to incorporate it with my Start Date / End Date

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: If Friday

    Rather than IF(C8="Friday" would IF(WEEKDAY(C8,1)=6 work?

  5. #5
    Registered User
    Join Date
    05-02-2014
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: If Friday

    It might but I'm not sure how to adjust the logic of the function to skip to the next working day?

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: If Friday

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Holidays is a named range where you list the holidays in that period.

+ 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. [SOLVED] Count number of days between two date where off days are Friday,Sat & Only Friday
    By rollcage7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-15-2014, 07:14 AM
  2. Replies: 9
    Last Post: 12-19-2012, 01:06 AM
  3. Insert tomorrow's date unless Friday. If Friday, insert Monday's date.
    By Cboeree in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-13-2012, 01:21 AM
  4. How to count all dates in column A using last friday and and next friday friday
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2011, 04:33 PM
  5. Replies: 1
    Last Post: 04-10-2006, 02:50 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