Excel counting blank spaces

R

rlampky

I have a column that contains letters and symbols. At the bottom of the
column I want to total only the blank spaces within that column. Any
suggestions?
 
L

Leo Heuser

=COUNTIF(A1:A100,"")

--
Best Regards
Leo Heuser
Excel MVP

Followup to newsgroup only please.
 
D

Dan E

rlampky,

Just to make sure we're on the same page...

A B C -> 2 spaces
X Y -> 1 space
G H I J -> 3 spaces

Total = 6 spaces

=SUMPRODUCT(LEN(A1:A10) - LEN(SUBSTITUTE(A1:A10," ","")))

OR
-> 1 space
ABC
-> 1 space
XY
-> 1 space
-> 1 space
GHIJ

Total = 4 spaces

=COUNTIF(A1:A10,"")

Dan E
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top