ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I evaluate a row of cells for a character in each cell? (https://www.excelbanter.com/excel-worksheet-functions/111124-how-do-i-evaluate-row-cells-character-each-cell.html)

TwoDot

How do I evaluate a row of cells for a character in each cell?
 
In a row of 52 cells, each cell contains an X or a P or an N. I want to
calculate the number of cells that contain an X and divide by 52 (or COUNTA
of the cell range).

bj

How do I evaluate a row of cells for a character in each cell?
 
try
=countif(range,"X")
similar for "P" and "N"

"TwoDot" wrote:

In a row of 52 cells, each cell contains an X or a P or an N. I want to
calculate the number of cells that contain an X and divide by 52 (or COUNTA
of the cell range).


Ron Coderre

How do I evaluate a row of cells for a character in each cell?
 
Try something like this:

=COUNTIF(A1:A52,"X")/COUNTA(A1:A52)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"TwoDot" wrote:

In a row of 52 cells, each cell contains an X or a P or an N. I want to
calculate the number of cells that contain an X and divide by 52 (or COUNTA
of the cell range).



All times are GMT +1. The time now is 06:00 AM.

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