Solved

Range limit on COUNTIF function in Excel

Posted on 1998-08-30
6
2,441 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Default Programs Does Not Show Excel 2010 Only Excel 2016 Even Though Both Installed 4 47
Excel 2013 Power Query 1 46
Compile Error 7 41
Create Form using Wizard 14 33
Introduction Perhaps more familiar to developers who primarily use VBScript than to developers who tend to work only with Microsoft Office and Visual Basic for Applications (VBA), the Dictionary is a powerful and versatile class, and is useful …
This article will show you how to use shortcut menus in the Access run-time environment.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

920 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

13 Experts available now in Live!

Get 1:1 Help Now