NA Formula


The NA formula in Excel is a built-in function that returns the error value #N/A.


The primary purpose of the NA formula is to generate the #N/A error in a cell. This can be particularly useful when you want to indicate that data is not available or yet to be provided.


The syntax for the NA formula is simple and straightforward:



Interestingly, the NA formula doesn’t require any parameters.


The NA formula will consistently return the #N/A error value.

Usage notes

You can utilize the NA formula in scenarios where you’re missing data and need to clearly mark these gaps in your worksheet.


You’ll find the NA formula available across all versions of Excel.

Example #1

In our first example, let’s generate a #N/A error in a cell by simply inputting:


Example #2

For the second example, let’s integrate the NA formula into a logical test:

=IF(A1="", NA(), A1)

Here, if cell A1 is empty, the formula returns a #N/A error, otherwise, it returns the value in A1.

Example #3

Consider the example where we have a list of products and their sales data. For any product that hasn’t made any sales, we can use the NA formula to clearly indicate this:

=IF(B1=0, NA(), B1)

Here, if cell B1 (representing sales) equals 0, the formula will return a #N/A error.

Example #4

In another scenario, let’s say we want to flag any negative sales figures as errors:

=IF(C1<0, NA(), C1)

This formula will return a #N/A error if cell C1 contains a negative value.

Example #5

Finally, you can even combine this formula with functions like VLOOKUP to handle errors. Here’s an example:


In this case, if the VLOOKUP function doesn’t find the lookup value D1 in the range E:F, instead of returning an error, it returns #N/A.

Tips and tricks

You can often combine this formula with IF, IFERROR, or other logical functions to handle specific scenarios in your Excel worksheets.


This formula solely returns the #N/A error and doesn’t have any other functionality.

Common errors and solutions

Remember, this formula doesn’t take any parameters. Hence, you shouldn’t include any arguments inside the parentheses.

Best Practices

It’s best to use this formula in tandem with other logical functions for greater control over your Excel worksheet and data analysis.

List of Related functions

Related functions include IF, IFERROR, and ISNA. They often work well in combination with this formula.

Frequently Used with the formulas

This formula is frequently used with IF, IFERROR, and VLOOKUP for handling errors or indicating missing data.

Frequently Asked Questions

Q. Does the NA formula require any parameters?

No, this formula doesn’t need any parameters. You should use it as =NA().

Q. What does the NA formula return?

The NA formula returns the #N/A error value.

Q. Can I use the NA formula with other functions?

Absolutely! You can use this formula with other functions like IF, IFERROR, and VLOOKUP for creating more advanced data manipulations.

Q. How can I use this formula to indicate missing data?

You can use this formula in combination with the IF function to mark missing data. For example, =IF(A1=””,NA(),A1) will return #N/A if cell A1 is empty.

We hope this tutorial gives you a better understanding of the NA formula in Excel. Remember, a well-handled #N/A error can make your worksheets more informative and easier to analyze!

Visit our YouTube channel to learn step-by-step video tutorials