A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Use CountIf for a literal string



 
 
Thread Tools Display Modes
  #1  
Old March 18th, 2010, 09:25 PM posted to microsoft.public.excel.worksheet.functions
chadkwelch
external usenet poster
 
Posts: 1
Default Use CountIf for a literal string

I am trying to count the number of cells in a range that contain the string
0.1. I don't want the number of cells that contain numbers less than 0.1, I
want the actual string. Is there an escape character for comparison operators
like the tilde for wild cards?

Thanks,
Chad
  #2  
Old March 18th, 2010, 09:40 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Use CountIf for a literal string

Try this...

=SUMPRODUCT(--(A1:A10="0.1"))

--
Biff
Microsoft Excel MVP


"chadkwelch" wrote in message
...
I am trying to count the number of cells in a range that contain the string
0.1. I don't want the number of cells that contain numbers less than 0.1,
I
want the actual string. Is there an escape character for comparison
operators
like the tilde for wild cards?

Thanks,
Chad



  #3  
Old March 18th, 2010, 10:18 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Use CountIf for a literal string

=SUMPRODUCT(--(A1:A13="0.1"))


"chadkwelch" wrote:

I am trying to count the number of cells in a range that contain the string
0.1. I don't want the number of cells that contain numbers less than 0.1, I
want the actual string. Is there an escape character for comparison operators
like the tilde for wild cards?

Thanks,
Chad

  #4  
Old March 21st, 2010, 03:45 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default Use CountIf for a literal string

Hi,

0.1 is a text string. If this is the only text string in the range, you
may use the following formula

=COUNTIF(C4:C9,"*")

--
Regards,

Ashish Mathur
Microsoft Excel MVP

"chadkwelch" wrote in message
...
I am trying to count the number of cells in a range that contain the
string
0.1. I don't want the number of cells that contain numbers less than 0.1,
I
want the actual string. Is there an escape character for comparison
operators
like the tilde for wild cards?

Thanks,
Chad


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.