+ Reply to Thread
Results 1 to 6 of 6

Why would a Range including over 524 rows not work?

Hybrid View

  1. #1
    Registered User
    Join Date
    09-05-2007
    Posts
    3

    Why would a Range including over 524 rows not work?

    What would make this not work:

    =SUM((Time1!$L$2:$L$529=$A77)*(Time1!$H$2:$H$529=D$1)*Time1!$J$2:$J$529)

    When this does:

    =SUM((Time1!$L$2:$L$524=$A77)*(Time1!$H$2:$H$524=D$1)*Time1!$J$2:$J$524)

    All I've done was extend the number of rows being checked for SUM (from 524 to 529), but somehow it returns 0 where the original returns the expected sum. Those rows after 524 aren't any different than those before.

    I'm baffled. Any help would be great.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076
    Change the range to look at 524 to 529
    If that returns zero then its not "more than 524 rows" thats at fault its a value between rows 524-529
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-05-2007
    Posts
    3

    originally I just threw 524 in there, it worked, so I didn't change it.

    I didn't expect to use this for so long, but here I am.

    So, those functions worked with hundreds of blank rows up to 524. I expected it to keep working when I increased that value. After all, it's just more blank rows like before. But now it's not happening.

    Honestly, that's the only change, nothing else is different, nothing has changed from functionality to non-functionality other than referencing any # of rows over 524.

  4. #4
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302
    You are reporting formulas that look ok. In this type of situation, you may not be looking at the actual formulas in your worksheet. Look hard without assuming anything.

    These are array formulas. Are you entering them with CTL-SHIFT-ENTER, as you should?
    FrankBoston is the pen name for Andrew Garland, Lexington MA

  5. #5
    Registered User
    Join Date
    09-05-2007
    Posts
    3

    just got it. Always happens after you ask a question...

    I selected all the blank cells and cleared content. Then it worked fine. Maybe there was a cell with a formula or an entry that I couldn't see easily (a period?).

    Thanks for the help folks.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,681
    even a space anywhere in J2:J529 would cause the formula to fail, you could try using a SUMPRODUCT formula where that wouldn't have such a catastrophic effect - and also doesn't need to be "array-entered"

    =SUMPRODUCT(--(time1!$L$2:$L$529=$A77),--(time1!$H$2:$H$529=D$1),time1!$J$2:$J$529)

+ 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