+ Reply to Thread
Results 1 to 4 of 4

Networkdays in sumproduct

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Santiago de Chile
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Networkdays in sumproduct

    Hi,
    is there some way to get this function workin:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The important part is that "networkdays" somehow responds with an array.
    The formular should calculate the capacity utilisation in the time specified from "G2" to "O2" and will be applied on all 7000 lines ("Gx" to "Ox").
    I translatet this excel code from spanish. I hope that everything is correct.
    Thanks a lot for you patience if you look over my problem.

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

    Re: Networkdays in sumproduct

    Most of the old "Analysis ToolPak" functions (including NETWORKDAYS) didn't originally work with arrays or ranges........but in Excel 2007 or later they do work with arrays, as long as the ranges contain just dates or blanks you can "co-erce" the ranges to arrays by using +0, *1 or similar, e.g. instead of

    Networkdays(($O$2:$O$7000);($G$2:$G$7000))

    use

    NETWORKDAYS($O$2:$O$7000+0;$G$2:$G$7000+0)
    Audere est facere

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    Santiago de Chile
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Networkdays in sumproduct

    This works perfect!!
    Thank you for that fast response.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Networkdays in sumproduct

    @ katosh

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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