Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2007

Tip: Looking for answers? Try searching our database.

COUNTIF: seems easy but....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laurent - 21 Mar 2007 09:34 GMT
Hello,

how can I use the countif function to count the number of star (*) in a
range ?

If I do =COUNTIF(B1:B8;"=*"), I have the number of cells because * is
understood as a wild card...

Thanks in advance

Laurent
KL - 21 Mar 2007 09:51 GMT
if you want the number of cells that contain * then:

=COUNTIF(B1:B8,"=*~**")

if you want the number of * in all cells then:

=SUMPRODUCT(LEN(B1:B8)-LEN(SUBSTITUTE(B1:B8,"*","")))

Signature

KL
[MVP - Microsoft Excel]
RU: http://www.mvps.ru/Program/Default.aspx
ES: http://mvp.support.microsoft.com/?LN=es-es
EN: http://mvp.support.microsoft.com/?LN=en-us
Profile: https://mvp.support.microsoft.com/profile=AB32F8EE-8ED3-4AB9-ADDA-9E6C73C09A36

> Hello,
>
[quoted text clipped - 7 lines]
>
> Laurent
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.