+ Reply to Thread
Results 1 to 18 of 18

SUMIFS stops after 400 rows

Hybrid View

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    SUMIFS stops after 400 rows

    I have a sumifs function and it works perfectly up until row 400 then it stops calculating and just ignores all the data below row 400. If I specify my sumifs to only do the first 400 rows then add that to another sumifs that does rows 401 to X I get the correct value. Is there some kind of limitation on the number of rows sumifs can use? This is really annoying because I have over 20,000 rows of data that I need to apply this function to. Thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: SUMIFS stops after 400 rows

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFS stops after 400 rows

    Quote Originally Posted by roberto188 View Post
    Is there some kind of limitation on the number of rows sumifs can use?
    No limit.

    Sounds kind of odd that if you use a separate SUMIFS from row 401+ that you get the correct result.

    Can you post both formulas?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    Here is the formula:

    =IF(A7=0,"",ROUND(SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$B:$B,"Bought")+SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$C:$C,"<0")+SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$B:$B,"Bookkeeping"),2))

    This is the formula that stops after row 400.
    Last edited by roberto188; 09-16-2016 at 01:21 PM.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS stops after 400 rows

    Quote Originally Posted by roberto188 View Post
    Here is the formula:

    =IF(A7=0,"",ROUND(SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$B:$B,"Bought")+SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$C:$C,"<0")+SUMIFS(Transcations!$C:$C,Transcations!$D:$D,A7,Transcations!$B:$B,"Bookkeeping"),2))

    This is the formula that stops after row 400.
    What is in cell A401?

  6. #6
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    Figured it out. For whatever reason the word "bookkeeping" was not be recongnized. In fact none of my text that was put into the sheet was recognized. When i RETYPE over the old "bookkeeping" or "bought" it would work. This is problem because I'm copying and pasting tons of data. I cannot manually input this data. Any ideas what could be causing this?
    Last edited by roberto188; 09-16-2016 at 01:36 PM.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS stops after 400 rows

    Quote Originally Posted by roberto188 View Post
    Figured it out. For whatever reason the word "bookkeeping" was not be recongnized. In fact none of my text that was put into the sheet was recognized. When i RETYPE over the old "bookkeeping" or "bought" it would work. This is problem because I'm copying and pasting tons of data. I cannot manually input this data. Any ideas what could be causing this?
    Try using text to columns, Finish on column B. Does that solve the issue?

  8. #8
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    I'm not sure what you mean by TEXT to columns. I'm not importing text. It's excel data that I am copying and pasting into the sheet. It's strange now, the overwrite with bookkeeping works, but not "bought".

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS stops after 400 rows

    Quote Originally Posted by roberto188 View Post
    I'm not sure what you mean by TEXT to columns. I'm not importing text. It's excel data that I am copying and pasting into the sheet. It's strange now, the overwrite with bookkeeping works, but not "bought".
    Highlight column B, go to the Data tab, select Text to Columns, Finish. See if this changes anything.

  10. #10
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    Quote Originally Posted by 63falcondude View Post
    Highlight column B, go to the Data tab, select Text to Columns, Finish. See if this changes anything.
    Didn't help. I'll just post my spreadhseet and you guys can take a look. It's acting very funny.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    I did some more experimenting and again, when I manually input the search criteria in the Transcations tab, "Bought, Sold, Bookkeeping" the formula works. But when it's copied from another spreadsheet and pasted it doesn't. Even doing a find and replace doesn't seem to help.

  12. #12
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    It's definitely something wrong with my data that I am importing. Manual inputs work perfectly fine. I just can't understand what the issue could possibly be.

  13. #13
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,432

    Re: SUMIFS stops after 400 rows

    It took a minute, but the problem appears to be that some cases of "Bookkeeping" have a trailing space and some do not. I tested by putting =LEN(B2) into a spare column on Transactions and copied down. Then compared successive values of this function. I noticed that some cases of Bookkeeping" had 11 characters and others had 12. Investigating those that had 12 showed that they were carrying an extra space "Bookkeeping ". To Excel, the text string "Bookkeeping" is not the same as the text string "Bookkeeping ".

    Solution is to somehow figure out how to copy data into Transactions without carrying any leading or trailing spaces, or to modify the conditional sum (maybe using wildcards) so that leading or trailing spaces do not interfere.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  14. #14
    Registered User
    Join Date
    08-12-2014
    Location
    New Jersey
    MS-Off Ver
    Office 2010
    Posts
    11

    Re: SUMIFS stops after 400 rows

    You are the MAN! A simple find and replace "Bookkeeping_" with "Bookkeeping" did the trick. Thanks so much!

+ 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. Insert blank rows stops running
    By jeff p in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2014, 11:20 PM
  2. Tab stops on hidden rows
    By g1972 in forum Excel General
    Replies: 1
    Last Post: 01-28-2014, 09:10 AM
  3. [SOLVED] VBA for copying data to columns stops on rows!
    By witham in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2013, 05:56 AM
  4. [SOLVED] SUMIFS suddenly returns zero values/stops working for 2013 date ranges
    By KShuff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2013, 03:53 PM
  5. Macro which deletes rows stops at empty row
    By john_london in forum Excel General
    Replies: 17
    Last Post: 09-28-2010, 06:00 PM
  6. vba code stops after 3600 rows
    By rdhdsandi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2010, 03:40 AM
  7. code stops working after X rows.
    By colwyn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2008, 03:14 PM

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