Hi y’all
Apart from =SUMPRODUCT((LEN(A1:A35)0)*1) can anyonne think of a way (using COUNTIF maybe) that I can count the cells in a column that are not equal to “”
TIA
Regards
Paul
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » COUNTIF ” (2002 SP3)
I would enter an array function:
=sum(if(A$1:A$35 “”,1) formula has to be entered with ctrl-shift-enter
since I could change the test to be = “Doug” or >5 etc. at some later date
On the other hand, if I know it is just non-blanks I would ever be worried about,
=counta(A$1:A$35)
will work, too…
(Edited by Jezza on 11-Mar-06 23:11. To add PS)
Hi Paul
I think this is what you are wanting, I have tried it out with a range that contained a couple of if statements and some blanl cells and it seems to work:
=(ROWS(A1:A35)*COLUMNS(A1:A35))-COUNTBLANK(A1:A35)
Good luck
PS
If it is just Column A with this then it can be further simplified:
=ROWS(A:A)-COUNTBLANK(A:A)
Yes, if only text and number values are of interest, the formula from your previous reply will do the job nicely. Otherwise, Jezza’s formulas are probably best, because they cover all situations. COUNTA doesn’t count really blank cells (it does count cells that are blank as the result of a formula).
[indent]
COUNTA doesn’t count really blank cells (it does count cells that are blank as the result of a formula).
[/indent]
They are not really blank if they contain a formula. A blank cell is an empty cell. If a formula is in a cell, it is not empty. A null string is a zero length string.
Steve
Thanks for all the replies guys.
In this application the cells that I am interested in have a formula that return text or “”. Sad @#$!% that I am, I figured out whilst trying to get to sleep last night that =COUNTA(A:A,”?*”) should get me what I need for this. However I shall store Jezza’s and Aladin’s ideas away for future use.
Thanks once again.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications