
Return the #N/A error on purpose when a value should be marked as not available.
NA returns the error value #N/A. In Excel, that error usually means "no value is available," and this function is useful because it lets you return that result on purpose instead of by accident.
That makes NA() different from most error-producing formulas. It is often used to mark data that is missing, not ready yet, or should be excluded from normal calculations. Microsoft specifically notes that it can be used to mark empty cells so they are not unintentionally treated like ordinary values in later formulas.
Creates a deliberate "not available" result when you want a missing value to stay explicit.
Returns the Excel error value #N/A, which other formulas can detect with functions like ISNA.
=NA()
The function takes no arguments. Microsoft also notes that the empty parentheses are required when you use it as a function. You can type #N/A directly into a cell, but NA() is the formula version provided for compatibility and for use inside other formulas.
| Value | What it means | Why it matters |
|---|---|---|
NA() |
Not available on purpose | Keeps the gap explicit and easy to test later. |
0 |
A real numeric zero | Can be misleading if the value is actually unknown. |
"" |
An empty text result | Looks blank, but it is not the same as a not-available error. |
| Blank cell | No entry | May be too vague when you want to show that the gap is intentional. |
A practical reason to use NA() is that it marks a missing value clearly instead of letting the workbook quietly treat that gap as zero or as ordinary text. In reports and models, that can be important because a true zero often means something very different from "we do not have a value yet."
NA is also useful inside conditional formulas. If a number should be ignored until it passes a check, you can return NA() rather than forcing a placeholder value into the sheet. That keeps the formula honest and makes the missing state easy to detect later with ISNA.
Another point worth remembering is that formulas that refer to a cell containing #N/A often return #N/A as well. That behavior is sometimes helpful because it stops missing data from blending into normal results, but it also means you should decide carefully where you want the error to remain visible and where you want to handle it with another function.
This is the most basic use of the function.
=NA()
The formula returns #N/A immediately. On its own that may look simple, but it is useful when you want to place a deliberate not-available marker in a cell instead of leaving the meaning of the gap unclear.
Generate the #N/A error value directly in cell F1.
This pattern turns an empty input into an explicit unavailable result.
=IF(A1="",NA(),A1)
If A1 is blank, the formula returns #N/A. If A1 contains a real value, that value is returned instead. This is useful when a blank should not be mistaken for a valid value that just happens to be zero or empty.
In cell F2, return #N/A when A1 is empty. Otherwise return A1.
When another formula may return #N/A, the right way to check for it is with ISNA.
=ISNA(A1)
This returns TRUE when A1 contains the #N/A error and FALSE otherwise. That makes it the cleanest way to detect an intentional not-available marker before deciding what to do next.
In cell F3, test whether A1 contains the #N/A error by using ISNA.
Sometimes a placeholder such as 0 should be treated as missing rather than real.
=IF(B2=0,NA(),B2)
If B2 is 0, the formula returns #N/A instead of passing the zero through. This is helpful when zero means "no reading yet" or "not reported" rather than an actual measured value.
In cell F4, return #N/A when B2 is 0. Otherwise return B2.
NA() returns #N/A on purpose.ISNA when you need to test for that result later.#N/A when they refer to it.Tell your friends about this post