A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Use COUNTIF, not COUNT.
COUNT counts numeric cells. To count cells that contain text such as NA, use a wildcard pattern with COUNTIF:
=COUNTIF(my_range,"*NA*")
This counts cells where NA appears anywhere in the cell, including examples like:
-
XXX: NA -
YYYY: NA -
NA
Notes:
-
COUNTIFuses only a single criterion. - Text matching is not case-sensitive, so
NAandnaare treated the same. - Wildcards are supported:
*matches any sequence of characters. - If results seem off, check for leading/trailing spaces or other hidden characters in the data.