ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using COUNTIF with text (https://www.excelbanter.com/excel-worksheet-functions/16573-using-countif-text.html)

jodiek

Using COUNTIF with text
 
I am using COUNTIF to determine the number of students who do not speak
English. I have 163 rows and about 1/2 are languages other than English but
the formula =COUNTIF(F1:F163,"<ENGLISH") comes up with 162 as the result.
Other worksheets seem to be able to use this formula. I'm sure it's
something in the text but I can't figure out what is is :(

Max

Try: =SUMPRODUCT(--(TRIM(F1:F163)<"ENGLISH"))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"jodiek" wrote in message
...
I am using COUNTIF to determine the number of students who do not speak
English. I have 163 rows and about 1/2 are languages other than English

but
the formula =COUNTIF(F1:F163,"<ENGLISH") comes up with 162 as the result.
Other worksheets seem to be able to use this formula. I'm sure it's
something in the text but I can't figure out what is is :(




Myrna Larson

It works for me, and it isn't case-sensitive. Are you sure you don't have
leading or trailing spaces in this column?

On Mon, 7 Mar 2005 19:35:07 -0800, jodiek
wrote:

I am using COUNTIF to determine the number of students who do not speak
English. I have 163 rows and about 1/2 are languages other than English but
the formula =COUNTIF(F1:F163,"<ENGLISH") comes up with 162 as the result.
Other worksheets seem to be able to use this formula. I'm sure it's
something in the text but I can't figure out what is is :(



jodiek

Thank you. That did the trick!

Best,
Jodie

"Max" wrote:

Try: =SUMPRODUCT(--(TRIM(F1:F163)<"ENGLISH"))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"jodiek" wrote in message
...
I am using COUNTIF to determine the number of students who do not speak
English. I have 163 rows and about 1/2 are languages other than English

but
the formula =COUNTIF(F1:F163,"<ENGLISH") comes up with 162 as the result.
Other worksheets seem to be able to use this formula. I'm sure it's
something in the text but I can't figure out what is is :(





jodiek

Thank you. That is the problem and i am working to repair it.

Best,
Jodie

"Myrna Larson" wrote:

It works for me, and it isn't case-sensitive. Are you sure you don't have
leading or trailing spaces in this column?

On Mon, 7 Mar 2005 19:35:07 -0800, jodiek
wrote:

I am using COUNTIF to determine the number of students who do not speak
English. I have 163 rows and about 1/2 are languages other than English but
the formula =COUNTIF(F1:F163,"<ENGLISH") comes up with 162 as the result.
Other worksheets seem to be able to use this formula. I'm sure it's
something in the text but I can't figure out what is is :(




Max

You're welcome !
Thanks for the feedback ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"jodiek" wrote in message
...
Thank you. That did the trick!

Best,
Jodie





All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com