ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   The use of N/A in formulas (https://www.excelbanter.com/excel-discussion-misc-queries/223591-use-n-formulas.html)

riddlen

The use of N/A in formulas
 
How can I use N/A in a formula as not to get an error message, but an actual
number back ?

For example when adding up cells and then dividing by a number and one of
the cell values is N/A, because it is not applicable.

Thank you

Gary''s Student

The use of N/A in formulas
 
=AVERAGE(IF(NOT(ISNA(A1:A50)),A1:A50))

This is an array formula that must be entered with CNTRL-SHFT-ENTER and not
just the ENTER key.
--
Gary''s Student - gsnu200837


"riddlen" wrote:

How can I use N/A in a formula as not to get an error message, but an actual
number back ?

For example when adding up cells and then dividing by a number and one of
the cell values is N/A, because it is not applicable.

Thank you



All times are GMT +1. The time now is 08:33 AM.

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