Count the number of cells in a range containing one of the following (1) a text string (2) a blank (3) a zero

diversification

New Member
Joined
Jun 24, 2020
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I'm having a heck of a time writing a formula that counts how many of the cells are one of the following things: (1) a text string (2) a blank (3) a zero. To be clear, by "zero" I mean that the cell = 0.

Example: Let's say that this is our range of cells, starting with Cell A1. If we have the following cells, I'd like a formula to identify that there are 5 matches to the criteria I mentioned.

5
21458
h249fks9
4100@15
0
214100
78
?????


I've tried COUNTIF, COUNTIFS, SUMPRODUCT, ISTEXT, ISNUMBER, ISBLANK, AGGREGATE, and various combinations therein, and I cannot get it. Can anyone help me write something that'll work?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Fluff.xlsm
ABC
1
255
321458
4
5h249fks9
64100@15
70
8214100
978
10?????
Data
Cell Formulas
RangeFormula
C2C2=SUM(COUNTIFS(A2:A10,{"?*","",0}))
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top