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 / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Count if begins with AAA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neall - 18 Sep 2007 17:14 GMT
I am wondering if I can this

search a row and return a numeric representation of cells in that row that
start with the letters "www"

Thanks in advance
Signature

Neall

JW - 18 Sep 2007 17:36 GMT
You can use a CountIf formul for that.  This will count all cells
within row 11 that starts with "www".
=COUNTIF(11:11,"www*")

If you want to do a column, then:
=COUNTIF(A:A,"www*")

> I am wondering if I can this
>
[quoted text clipped - 4 lines]
> --
> Neall
Mike H - 18 Sep 2007 17:38 GMT
Hi,

Right click the sheet tab, view code and paste this in.
Select the row you want to search and run this:-

Sub sonic()
Dim myRange As Range
Set myRange = Selection
   For Each c In myRange
       If UCase(Left(c.Value, 3)) = "WWW" Then Count = Count + 1
   Next
MsgBox Count
End Sub

Mike

> I am wondering if I can this
>
> search a row and return a numeric representation of cells in that row that
> start with the letters "www"
>
> Thanks in advance
 
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.