+ Reply to Thread
Results 1 to 9 of 9

Workday function to excluding fridays

  1. #1
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Workday function to excluding fridays

    Hi,

    I would really appreciate if anyone can help me out to find out a solution,

    I'm looking for a formula to get a date after excluding fridays & holidays only..

    E.g: Cell A1 i've a date: 1-Feb-2011 and i should get a date in cell B1 after 100 working days (excluding Fridays & holidays)

    I'm trying Workday function, but it returns after skipping Saturdays & Sundays..

    Experts kindly help me out..

    Regards,

    Nawas
    Last edited by nawas; 03-09-2011 at 02:30 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Workday function to excluding fridays

    Hi, in D2:D100 the holidays dates

    =SMALL(IF((WEEKDAY(ROW(INDIRECT(A1+1&":"&A1+365)))<>6)*(COUNTIF(HOLIDAYS,ROW(INDIRECT(A1+1&":"&A1+365)))=0),ROW(INDIRECT(A1+1&":"&A1+365))),100)
    To be confirmed with control+shift+enter: it's an array formula.

    The formula counts the 100th day excluding Fridays (weekday<>6) and Holidays (listed in D1:D100) from the day after in A1.

    Regards
    Last edited by DonkeyOte; 03-08-2011 at 03:40 AM. Reason: typo in formula - reference to D2:D100HOLIDAYS adjusted to HOLIDAYS

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Workday function to excluding fridays

    Hi again
    I was double-checking the formula: I've substituted HOLIDAYS (you can use it, if you prevoiusly define it as a name) with D1:D100.

    =SMALL(IF((WEEKDAY(ROW(INDIRECT(A1+1&":"&A1+365)))<>6)*(COUNTIF($D$1:$D$100,ROW(INDIRECT(A1+1&":"&A1+36 5)))=0),ROW(INDIRECT(A1+1&":"&A1+365))),100)
    To be confirmed with control+shift+enter.

    Hope this helps.

    Regards
    Last edited by canapone; 03-08-2011 at 04:02 AM. Reason: Poor grammar

  4. #4
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: Workday function to excluding fridays

    Quote Originally Posted by CANAPONE View Post
    Hi, in D2:D100 the holidays dates



    To be confirmed with control+shift+enter: it's an array formula.

    The formula counts the 100th day excluding Fridays (weekday<>6) and Holidays (listed in D1:D100) from the day after in A1.

    Regards
    Hi Canapone,

    So quick.... wow..its working ...

    Many Thanks...

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Workday function to excluding fridays

    I was also looking for that kind of solution and I have found it very much effective solution against my problem. Beside this, I was also trying minus certain no. of days using this formula but in that case its not working.

    Is is possible to minus instead of adding days?

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Workday function to excluding fridays

    Hi,

    an array formula, more or less same spirit.

    =LARGE(IF((WEEKDAY(ROW(INDIRECT(A1-365&":"&A1-1)))<>6)*(COUNTIF($D$1:$D$100;ROW(INDIRECT(A1-365&":"&A1-1)))=0);ROW(INDIRECT(A1-365&":"&A1-1)));100)
    Hope it works.

    Regards

    -----

    Edit: better if you'd open a new thread in order to obtain more help and visibility.
    Last edited by canapone; 07-06-2011 at 02:17 AM.

  7. #7
    Registered User
    Join Date
    07-01-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Workday function to excluding fridays

    Dear Canapone,

    Many thanks for quick feedback.

    While I was trying to use the formula its showing an error message.

    If you don't mind can you please check and show me where is the problem.

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Workday function to excluding fridays

    Hi,

    maybe you forgot to confirm the formula with control+shift+enter.

    Attached the test file.

    Hope it helps

    -----

    GIORNO.SETTIMANA is the Italian equivalent for WEEKDAY

    नमस्ते
    Attached Files Attached Files
    Last edited by canapone; 07-06-2011 at 07:25 AM.

  9. #9
    Registered User
    Join Date
    07-01-2010
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Workday function to excluding fridays

    Thanks a lot. Its working perfectly.

+ 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