How to use the Excel NA function

In this article, we will learn about how to use the NA function in Excel.

In simple words, this function is used with other functions to accept the condition and give response to the user as desired

The NA function returns a not applicable error when used with other functions.
Syntax:

=NA()

Returns the error
01
Let’s understand this function using it in an example.
08
We need to find out the Total price for all the fruits and do not want 0 in return.

We will use the formula:

=IF(B2="", NA(), B2*C2)

B2 = “” : condition to check for empty cells that we will return 0
NA() : value if condition is True.
B2*C2 : value if condition is False
09
As you can see the value if condition is False.
Now copy the formula in other cells using shortcut key Ctrl + D.
10
As you can see the formula returns value error where condition stands True

Hope you understood how to use the NA function in Excel. Explore more articles on Excel logic_test functions here. Please feel free to state your query or feedback for the above article.

Related Articles:

How to Use IFERROR function in Excel

IFERROR and VLOOKUP function

How to Use ISERROR Function in Excel

How to correct a #NUM! Error

Popular Articles:

How to use the VLOOKUP Function in Excel

How to use the COUNTIF function in Excel 2016

How to Use SUMIF Function in Excel

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube