+ Reply to Thread
Results 1 to 5 of 5

Formula to count the days between the ranges exclude weekend

  1. #1
    Registered User
    Join Date
    10-10-2009
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    58

    Formula to count the days between the ranges exclude weekend

    Hi,

    Please help on the enclosed Array formula which is F9 function.
    I need the counting of days between two dates range with out weekend to match the total quantity.
    Formula to be corrected at H3 is
    =SUM($C3/$D3*(TRANSPOSE(ROW(INDIRECT(G$2+1&":"&H$2)))<=$F3)*(TRANSPOSE(ROW(INDIRECT(G$2+1&":"&H$2)))>=$E3))

    Thanks.
    Attached Files Attached Files
    Last edited by roven.aravind; 07-14-2018 at 08:56 AM. Reason: Subject change

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to count the days between the ranges exclude weekend

    Based on the comment in your file, Friday is your weekend?

    In H2 (not an array formula).

    =MAX(0,$C3/$D3*NETWORKDAYS.INTL(MAX($E$3,G$2+1),MIN($F$3,H$2),16))

    Then drag it right.

  3. #3
    Registered User
    Join Date
    10-10-2009
    Location
    UAE
    MS-Off Ver
    Excel 2016
    Posts
    58

    Re: Formula to count the days between the ranges exclude weekend

    Mr. Jason,
    Thanks for your reply.

    It is very good logic by using Max and Min functions. Till now I am using in other models very lengthy process. Now it is good and it is also useful for single activity logic.

    But can I get the formula without weekends in that same which I send. Because this I can use as array formula in other works.
    Thanks.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to count the days between the ranges exclude weekend

    Why not use the non array in other works?

    If you have to change the array formula to exclude friday then you can just as easily change it to Min Max or similar.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula to count the days between the ranges exclude weekend

    I assume that the formulas in question are the ones in this thread?

    https://www.excelforum.com/excel-for...hing-data.html

    I can either give you an array formula for this thread or look at removing the array from the formula in the other thread.

    Your choice.
    Last edited by jason.b75; 07-15-2018 at 04:06 AM.

+ 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. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  2. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  3. Array formula + Array formula with criteria that lookups a Table
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2013, 11:41 AM
  4. Typing an array into a formula rather than referring to an array of cells
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2013, 12:59 PM
  5. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  6. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  7. [SOLVED] Tricky array formula issue - Using array formula on one cell, then autofilling down a range
    By aspenbordr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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