PC Review


Reply
Thread Tools Rate Thread

Count if begins with AAA

 
 
=?Utf-8?B?TmVhbGw=?=
Guest
Posts: n/a
 
      18th Sep 2007
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
--
Neall
 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      18th Sep 2007
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*")

Neall wrote:
> 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
> --
> Neall


 
Reply With Quote
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      18th Sep 2007
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

"Neall" wrote:

> 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
> --
> Neall

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If cell D2 begins with 00 then E2 = dizzl3e Microsoft Excel Programming 4 22nd Feb 2010 08:35 PM
count if colum begins with linda Microsoft Excel Misc 5 14th Jan 2009 08:22 PM
Re: Begins with Chris Lewis Microsoft Excel Programming 0 10th Jan 2007 02:32 PM
Re: Begins with jeff.j.griffith@gmail.com Microsoft Excel Programming 1 10th Jan 2007 01:54 PM
Re: Begins with Don Guillett Microsoft Excel Programming 0 10th Jan 2007 01:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 AM.