Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default counting instances of predefined text in a row

Hi

Sorry am new to this.

Can someone please tell me how I can get the total at the end of a row that
text like Mid, Har,Yor, Sto is entered into cells. I also ahave number in
cells in the rows that I do not want to count

Thanks






  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 833
Default counting instances of predefined text in a row

Try the COUNTIF Function.

From MS documentation:-

=COUNTIF(B2:B25,"Nancy")

Please hit yes if my comment has helped.

Thanks.

"Zing" wrote:

Hi

Sorry am new to this.

Can someone please tell me how I can get the total at the end of a row that
text like Mid, Har,Yor, Sto is entered into cells. I also ahave number in
cells in the rows that I do not want to count

Thanks






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default counting instances of predefined text in a row

before/after examples


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Zing" wrote in message
...
Hi

Sorry am new to this.

Can someone please tell me how I can get the total at the end of a row
that
text like Mid, Har,Yor, Sto is entered into cells. I also ahave number in
cells in the rows that I do not want to count

Thanks







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gil Gil is offline
external usenet poster
 
Posts: 14
Default counting instances of predefined text in a row

Hello Zing,

This probably isn't the cleanest of formulas, but I use one just like it for
three different values. Try this:

=COUNTIF(A1:A10,"Mid")+COUNTIF(A1:A10,"Har")+COUNT IF(A1:A10,"Yor")+COUNTIF(A1:A10,"Sto")

Obviously change the ranges to what suits your spreadsheet and if you insert
lines, the formulas will adjust auto-magically.

Hopefully I've helped and if this post has been helpful to you (or anyone
else) - please click the Yes button.

Gil

"Zing" wrote:

Hi

Sorry am new to this.

Can someone please tell me how I can get the total at the end of a row that
text like Mid, Har,Yor, Sto is entered into cells. I also ahave number in
cells in the rows that I do not want to count

Thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
One click date + predefined text input. James.T[_2_] Excel Discussion (Misc queries) 3 August 1st 08 06:19 PM
Counting instances of text??? tpmax Excel Worksheet Functions 7 June 27th 07 03:54 AM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
cell formula for counting instances of text? Samuel Excel Discussion (Misc queries) 12 May 24th 06 01:41 PM
counting unique instances of text in a list WadeSansing Excel Worksheet Functions 5 June 1st 05 06:57 PM


All times are GMT +1. The time now is 09:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"