ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COUNTIF? (https://www.excelbanter.com/excel-discussion-misc-queries/60768-countif.html)

Vegs

COUNTIF?
 
Why can't I detect, using the "countif" function, specific text in a column?
This specific text also cannot be centered directly in the center of the
cell. The spreadsheet was created using a separate program which extracts
data from an AS400 program. I can detect text which has been retyped into
this spreadsheet. The retyped text can also be centered properly.

Don Guillett

COUNTIF?
 
try
=SUMPRODUCT(--(TRIM(I1:I100)="a"))
--
Don Guillett
SalesAid Software

"Vegs" wrote in message
...
Why can't I detect, using the "countif" function, specific text in a
column?
This specific text also cannot be centered directly in the center of the
cell. The spreadsheet was created using a separate program which extracts
data from an AS400 program. I can detect text which has been retyped into
this spreadsheet. The retyped text can also be centered properly.




Bernie Deitrick

COUNTIF?
 
Your data extract from the AS400 either has extra spaces or extra non-printing characters. Using
TRIM may work, or using

=COUNTIF(A:A,"*text to find*")

may also work.

HTH,
Bernie
MS Excel MVP


"Vegs" wrote in message
...
Why can't I detect, using the "countif" function, specific text in a column?
This specific text also cannot be centered directly in the center of the
cell. The spreadsheet was created using a separate program which extracts
data from an AS400 program. I can detect text which has been retyped into
this spreadsheet. The retyped text can also be centered properly.





All times are GMT +1. The time now is 05:51 PM.

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