Solved

Range limit on COUNTIF function in Excel

Posted on 1998-08-30
6
2,349 Views
Last Modified: 2008-02-01
   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?
0
Comment
Question by:kirkwood
  • 3
  • 2
6 Comments
 

Author Comment

by:kirkwood
ID: 1613354
Edited text of question
0
 
LVL 4

Expert Comment

by:mcix
ID: 1613355
Which version of Excel?
0
 
LVL 3

Expert Comment

by:shalbe
ID: 1613356
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Expert Comment

by:shalbe
ID: 1613357
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
 

Author Comment

by:kirkwood
ID: 1613358
    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
 
LVL 3

Accepted Solution

by:
shalbe earned 100 total points
ID: 1613359
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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

How many times recently have you prepared a presentation or emailed a document to a client and you have found that they have older versions of MS Office and they can not open the file you have prepared.  Although most visitors to this site are exper…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now