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 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
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


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
Using a sub string in a COUNTIF PeteJ Excel Discussion (Misc queries) 2 January 7th 14 01:31 AM
Literal based on Week end Umar Excel Worksheet Functions 5 December 26th 09 04:54 PM
How to use literal quotes with concatenation schieb Excel Discussion (Misc queries) 2 February 3rd 06 09:49 PM
COUNTIF - everything excluding a string sans Excel Worksheet Functions 3 October 6th 05 08:32 PM
Referencing Literal Arrays Vic Sowers Excel Worksheet Functions 2 May 24th 05 12:50 AM


All times are GMT +1. The time now is 07:36 AM.

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

About Us

"It's about Microsoft Excel"