Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Counting occurences of text

Dear Experts,
I am trying to count the appearance of text in a cell. When I use COUNTA it
also counts the existence of the formula in the cell (which was used to
deliver the text of interest). How can I count only the textual result of
the formula?

=IF(G4=0,"",G4)

Alternatively how can I count non-zero entries, excel didn't like the
following:
=COUNTIF(G4:G63,<0)
regards
Martina
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting occurences of text

To count cells that contain TEXT and exclude formula blanks:

=COUNTIF(A1:A10,"?*")

=COUNTIF(G4:G63,<0)


Try it like this:

=COUNTIF(G4:G63,"<0")

--
Biff
Microsoft Excel MVP


"jc132568" wrote in message
...
Dear Experts,
I am trying to count the appearance of text in a cell. When I use COUNTA
it
also counts the existence of the formula in the cell (which was used to
deliver the text of interest). How can I count only the textual result of
the formula?

=IF(G4=0,"",G4)

Alternatively how can I count non-zero entries, excel didn't like the
following:
=COUNTIF(G4:G63,<0)
regards
Martina



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting occurences of text

This formula is ignored "0s" but included blank cells
=COUNTIF(G4:G63,"<0")


These formula are ignored both "0s" and blank cells

=COUNTIF(G4:G63,"0")+COUNTIF(G4:G63,"<0")
or
=COUNT(G4:G63)-COUNTIF(G4:G63,0)


"jc132568" wrote:

Dear Experts,
I am trying to count the appearance of text in a cell. When I use COUNTA it
also counts the existence of the formula in the cell (which was used to
deliver the text of interest). How can I count only the textual result of
the formula?

=IF(G4=0,"",G4)

Alternatively how can I count non-zero entries, excel didn't like the
following:
=COUNTIF(G4:G63,<0)
regards
Martina

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Counting occurences of text

Many thanks.
regards
Martina

"Teethless mama" wrote:

This formula is ignored "0s" but included blank cells
=COUNTIF(G4:G63,"<0")


These formula are ignored both "0s" and blank cells

=COUNTIF(G4:G63,"0")+COUNTIF(G4:G63,"<0")
or
=COUNT(G4:G63)-COUNTIF(G4:G63,0)


"jc132568" wrote:

Dear Experts,
I am trying to count the appearance of text in a cell. When I use COUNTA it
also counts the existence of the formula in the cell (which was used to
deliver the text of interest). How can I count only the textual result of
the formula?

=IF(G4=0,"",G4)

Alternatively how can I count non-zero entries, excel didn't like the
following:
=COUNTIF(G4:G63,<0)
regards
Marti

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
Counting Unique occurences of text in a column Tan Excel Worksheet Functions 12 October 26th 09 04:21 PM
Counting Unique occurences of text in a column Bernd P Excel Worksheet Functions 0 October 25th 09 10:47 AM
Counting occurences of text DJ Excel Discussion (Misc queries) 7 September 24th 09 11:07 AM
Counting occurences of a name [email protected] Excel Worksheet Functions 3 October 8th 07 12:52 AM
Counting Occurences Pete Excel Discussion (Misc queries) 7 May 2nd 05 08:28 PM


All times are GMT +1. The time now is 02:09 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"