+ Reply to Thread
Results 1 to 3 of 3

Help with a SUMPRODUCT to count data

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Help with a SUMPRODUCT to count data

    Hi,

    I had a SUMPRODUCT that I used to count holidays in a table and I've tried to put it into another workbook but i'm getting #value. What i'm trying to do is count the word "HOL" on a rota for an individual between a set time because the holiday year is different to the financial year and I need it to work for subsequent years.

    This is the formula but i'm using names ranges so I have attached an example.

    Please Login or Register  to view this content.
    Any help as always appreciated

    BOOK2.xlsx

    John

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Help with a SUMPRODUCT to count data

    Not quite sure what your final intent is, but the problem is that your arrays are different sizes. Names is 3, the rest are 371, and TM_Shifts is actually 371x3 matrix (which could still work). The equation will count all of the HOL cells if you remove the TM_Names reference which is hosing up your matrix math.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Help with a SUMPRODUCT to count data

    You dont have a date in E1, but use this, and then add the extra criteria when you sort that out...

    =COUNTIFS(OFFSET(Sheet2!$A$4,1,MATCH(Sheet1!A2,Sheet2!$A$4:$E$4,0)-1,COUNTA(Sheet2!A:A)-1,1),"HOL",TM_Dates,">="&Sheet1!D1)

+ 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