11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

186<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

Counting nonblank cells<br />

The following formula uses the COUNTA function to return the number of nonblank cells in a<br />

range named Data:<br />

=COUNTA(Data)<br />

The COUNTA function counts cells that contain values, text, or logical values (TRUE or FALSE).<br />

If a cell contains a formula that returns an empty string, that cell is included in the<br />

count returned by COUNTA even though the cell appears to be blank.<br />

Counting numeric cells<br />

To count only the numeric cells in a range, use the following formula, which assumes that the<br />

range is named Data:<br />

=COUNT(Data)<br />

Cells that contain a date or a time are considered to be numeric cells. Cells that contain a logical<br />

value (TRUE or FALSE) are not considered to be numeric cells.<br />

Counting nontext cells<br />

The following array formula uses Excel’s ISNONTEXT function, which returns TRUE if its argument<br />

refers to any nontext cell (including a blank cell). This formula returns the count of the number of<br />

cells not containing text (including blank cells):<br />

{=SUM(IF(ISNONTEXT(Data),1))}<br />

Counting text cells<br />

To count the number of text cells in a range, you need to use an array formula. The array formula<br />

that follows returns the number of text cells in a range named Data:<br />

{=SUM(IF(ISTEXT(Data),1))}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!