Thread
:
Can I Use a Count Function for Text?
View Single Post
#
25
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
Posts: 35,218
Can I Use a Count Function for Text?
=countif() will count the number of cells that match the criteria.
If you want to count the number of @'s in a range:
=SUMPRODUCT(LEN(A1:A100)-LEN(SUBSTITUTE(A1:A100,"@","")))
Adjust the range to match, but you can't use the entire column until xl2007.
Paula Ohio wrote:
Joan, I have the @ character in the same cell more than once and when I use
the =COUNTIF(A1:A100,"*@*") that Bob Phillips recommended, I get a count of
five instead of 10 in my test text. For example,
,
on five different rows in Excel should count 10 @ chars.
"Joan NYC" wrote:
Aha... Sumproduct is not a function I ever tried
I have a column of text. Some cells contain the character "@" with a space
preceding the rest of text in the cell. I realize the @ could be considered
an operator so it is preceded with an apostrophe to designate text. I want
to sum the cells that have the "@"
Thanks
"David Biddulph" wrote:
You'll need to be a bit clearer as to what you're trying to do. If COUNTIF
or SUMIF doesn't do the job, you may want to try SUMPRODUCT.
--
David Biddulph
"Joan NYC" wrote in message
...
I have been trying to calculate a column of Text in order to sum contents
by
certain criteria
I have tried Count, CoutA and CountIF and cannot be able to get anything
to
work.
Am I barking up the wrong tree? :) Can this be done?
Thanks much.
--
Dave Peterson
Reply With Quote
Dave Peterson
View Public Profile
Find all posts by Dave Peterson