PC Review


Reply
Thread Tools Rate Thread

How to count rows with text

 
 
davegb
Guest
Posts: n/a
 
      24th Apr 2008
Can someone tell me a simple way to count the number of occurences of
a text string "abc" that are in adjacent columns in a row? In other
words, in row 2, starting in column "B" I have "abc". It appears again
in column C, and so forth. At some point, the contents of the cells in
row 2 changes to "xyz". I need to know how many "abc"s are there so I
can copy them to another spreadsheet. Can someone show me a good way
to do something like this?
Thanks in advance!
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      24th Apr 2008
hi,
=countif(2:2,"abc")
or
count the number of time "abc" appears in row2.

Regards
FST1

"davegb" wrote:

> Can someone tell me a simple way to count the number of occurences of
> a text string "abc" that are in adjacent columns in a row? In other
> words, in row 2, starting in column "B" I have "abc". It appears again
> in column C, and so forth. At some point, the contents of the cells in
> row 2 changes to "xyz". I need to know how many "abc"s are there so I
> can copy them to another spreadsheet. Can someone show me a good way
> to do something like this?
> Thanks in advance!
>

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      25th Apr 2008
FSt1 is right, for a specific string, use something like this:
=COUNTIF(A1:A100,"ABC")

To count all rows with text, sue something like this:
=COUNTA(A1:A100)


Regards,
Ryan---


--
RyGuy


"FSt1" wrote:

> hi,
> =countif(2:2,"abc")
> or
> count the number of time "abc" appears in row2.
>
> Regards
> FST1
>
> "davegb" wrote:
>
> > Can someone tell me a simple way to count the number of occurences of
> > a text string "abc" that are in adjacent columns in a row? In other
> > words, in row 2, starting in column "B" I have "abc". It appears again
> > in column C, and so forth. At some point, the contents of the cells in
> > row 2 changes to "xyz". I need to know how many "abc"s are there so I
> > can copy them to another spreadsheet. Can someone show me a good way
> > to do something like this?
> > Thanks in advance!
> >

 
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
Count number of rows with specific text Rock Microsoft Excel Worksheet Functions 2 24th May 2010 08:46 PM
count of number of rows within a range with a certain text cooey Microsoft Excel Worksheet Functions 5 13th May 2010 08:18 PM
Count same text from different rows kashish Microsoft Excel Misc 2 7th Jul 2009 01:40 PM
how do I count rows with text values in several columns. scmopar Microsoft Excel Worksheet Functions 4 30th Jan 2009 02:20 AM
Count rows in text file by loading into array L Mehl Microsoft Excel Programming 5 11th Sep 2004 07:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 PM.