+ Reply to Thread
Results 1 to 3 of 3

Can't get over certain number of rows for SUMPRODUCT formula

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Toronto, ON, Canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Can't get over certain number of rows for SUMPRODUCT formula

    I have a spreadsheet that serves as our resource calendar with two worksheets. One ('Data Entry') has time entered daily. Every row in 'Data Entry' is a resource name (e.g.: John Smith) and every column is a day of a month (e.g.: Jan.22, Jan.23 etc.). In my second worksheet ('Weekly summary') I have the same layout, that is the rows are the resources in the same order as on the first worksheet, but instead of daily columns, I have weekly columns.

    I'm trying to sum up all daily time entries per resource into a weekly summary. For example if John Smith has the following entries in the 'Data Entry' worksheet: 8 ours for Jan.21, 8 hours for Jan.22, 4 hours for Jan.23 and no entries for Jan.24-28, in the 'Weekly Summary' worksheet, I'd like to add all the time entries for columns Jan.21 through Jan.28 where the row has John Smith (should display 20 hours for the week of Jan.21)

    Here's what I've used so far:

    =SUMPRODUCT('Data Entry'!K$2:CN$80*('Data Entry'!C$2:C$80="John Smith"))

    The formula works well but only a certain number of rows. If I extend the range from the current C2-C80 to C2-C82 is returns #VALUE! error.
    BUT, if I move the entire range from C2-C80 to C5-C83 it works. Ir seems like it's having problem with the range size.

    Any ideas?

    Thanks,
    Matthew

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,765

    Re: Can't get over certain number of rows for SUMPRODUCT formula

    You would also have to change K$2:CN$80 to K$2:CN$82, as the arrays have to be the same size.

    Another problem might be that you have an error in cell C81 or C82.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-27-2012
    Location
    Toronto, ON, Canada
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Can't get over certain number of rows for SUMPRODUCT formula

    BAD CELL! I couldn't see any bad data there, but I deleted the entire row 82 (that's where it would stop) and it works!

    Thanks Pete!

+ 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