Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Using Excel 2002
I have rows of data with values in cells. I would like to count the number of times the letter X appears in each column. Using the COUNTIF function in the following manner reports a value of zero. The formula is in cell B22: =COUNTIF(B2:B21,"X"). In column B there are ten instances of the letter X. Can someone help? Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Do those cells contain other letters or characters, including spaces?
If so and you want to count those, then you might try: =COUNTIF(B2:B21,"*X*") Regards, Paul -- "PatJennings" wrote in message ... Using Excel 2002 I have rows of data with values in cells. I would like to count the number of times the letter X appears in each column. Using the COUNTIF function in the following manner reports a value of zero. The formula is in cell B22: =COUNTIF(B2:B21,"X"). In column B there are ten instances of the letter X. Can someone help? Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You may have leading or trailing spaces
=COUNTIF(B2:B21,"*X*") "PatJennings" wrote: Using Excel 2002 I have rows of data with values in cells. I would like to count the number of times the letter X appears in each column. Using the COUNTIF function in the following manner reports a value of zero. The formula is in cell B22: =COUNTIF(B2:B21,"X"). In column B there are ten instances of the letter X. Can someone help? Thanks! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Your data may be contaminated with spaces. To test for this, temporarily modify your formula to: =COUNTIF(B2:B21,"*X*") Does that change the count? Regards - Dave. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
W O W ! ! !
Thanks to all for the immediate response. The adjustment to the formula did the trick. "Dave" wrote in message ... Hi, Your data may be contaminated with spaces. To test for this, temporarily modify your formula to: =COUNTIF(B2:B21,"*X*") Does that change the count? Regards - Dave. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use of the COUNTIF function | Excel Worksheet Functions | |||
please help how to combine IF function with Countif function | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
Embed a countif function in subtotal function? | Excel Worksheet Functions | |||
help with the countif function!! | Excel Worksheet Functions |