ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel Count Formula? (https://www.excelbanter.com/excel-worksheet-functions/65894-excel-count-formula.html)

Mrebisz3154

Excel Count Formula?
 
Hi - How do I write a count formula for non-blank cells that may contain
either a "X" or a number?

Ron Coderre

Excel Count Formula?
 
See if the COUNTA function returns what you are looking for.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Mrebisz3154" wrote:

Hi - How do I write a count formula for non-blank cells that may contain
either a "X" or a number?


SteveG

Excel Count Formula?
 

=COUNTIF(A1:A30,"x")+COUNTIF(A1:A30,"=0")

This is assuming you want to count cells that contain a 0, if you
don't, just remove the = from the second COUNTIF.


HTH

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=502518



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

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