Range limit on COUNTIF function in Excel

   What is the limit of rows for which the COUNTIF function can be used? I use Excel to analyze survey responses and I have tried to use the COUNTIF function to count the number of "5s", "4s", "3s", etc., in a range of survey responses. The function works fine for a range of 20 or 30 cells, but fails if the range is a few hundred cells. The DCOUNT function works, but is more awkward and time consuming to use.
    Is there something I'm missing?
kirkwoodAsked:
Who is Participating?
 
shalbeConnect With a Mentor Commented:
kirkwood,

The Countif function was giving the wrong answer because the "blank" cells in the worksheet were not blank. If you delete the contents from all of the blank cells, the Countif function will work correctly.

Steve
0
 
kirkwoodAuthor Commented:
Edited text of question
0
 
mcixCommented:
Which version of Excel?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
shalbeCommented:
kirkwood,

I tried it on over 22,000 in Excel 97 and with 16,000 rows in Excel 5.0 and it seemed to work fine. If you want to send me the file I will see if I can get it to work for you. You can send the file to shalbe@san.rr.com

Steve
0
 
shalbeCommented:
kirkwood,

I've looked at the file and found that your "blank" spaces are not blank. That is why the countif totals are wrong.  I sorted the data by q1 and highlighted all the blank spaces and hit Delete. Then it recalculated and gave the correct answers.

Was the data imported ?

Steve


0
 
kirkwoodAuthor Commented:
    Thanks, Steve.  The solution is embarrassingly simple. Yes the data were imported.  It was the first time I have dealt with "blanks" from the source of the imported data.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.