Limit COUNTA fn to cells whose formula returns any text

Posted on 2011-02-25
Last Modified: 2012-05-11
I have a spreadsheet which contains formulas down column A to pull in names from another spreadsheet column A.  I will refer to the other spreadsheet as [other].  Each cell in column A contains an IF statement =if([other]A1="","",[other]A1).  The spreadsheet column A looks like:

              COLUMN A
ROW 1:  Name 1
ROW 2:  Name 2
ROW 3:  Name 3
ROW 4:  Name 4
ROW 5:  
ROW 6:  

My problem is that at the bottom of column A, I want to count how many names I have, and not include any cells that contain merely the if statement.  A normal COUNTA(A1:A6) will return 6 but I need it to return 4.

How do I limit the COUNTA function in this way?  Or should I be doing it another way?
Question by:witzph1
  • 4
  • 3
LVL 33

Expert Comment

ID: 34984442
Use COUNT() instead of COUNTA().

Author Comment

ID: 34984460
COUNT returns '0' because it is looking for numbers, not text.
LVL 33

Expert Comment

ID: 34984467
Sorry...forgot that you're counting text!
LVL 92

Accepted Solution

Patrick Matthews earned 250 total points
ID: 34984492
Try this:


That will ignore blanks, zero-length strings, and numbers.
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

LVL 33

Expert Comment

ID: 34984500

Author Comment

ID: 34984545
Mathewspatrick, that works, but not sure I understand why "?*" does what it does.  Very interesting.  

ippinto, that also works.  Alas, Mathewspatrick was slightly quicker on the draw, and his solution is shorter, and thus more elegant.  

But thanks to both for your help!

Author Closing Comment

ID: 34984549
Thanks again for your help.
LVL 33

Expert Comment

ID: 34984574
Agree! I almost got there... :)

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

707 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