ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF (https://www.excelbanter.com/excel-worksheet-functions/249855-countif.html)

lehigh46

COUNTIF
 
Hi All,

I'm trying to do a COUNTIF in a row where some cells may contain an
"X"

My problem is that the "X" is placed via. an IF statement formula.

How can I add the number of "X"'s

Thank you very much for your help

Tom

Bernard Liengme

COUNTIF
 
=COUNTIF(B1:B100,"X")
It does not matter if the X results from a formula or was typed into the
cell
If you are not getting it to work, look at the IF and make sure it is X and
not X with a space that is being entered
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"lehigh46" wrote in message
...
Hi All,

I'm trying to do a COUNTIF in a row where some cells may contain an
"X"

My problem is that the "X" is placed via. an IF statement formula.

How can I add the number of "X"'s

Thank you very much for your help

Tom




All times are GMT +1. The time now is 12:41 PM.

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