Category: FUNCTION | Updated: 2026-11-22
How to Use the NA Function | Intentionally Return a '#N/A' Error Value
Syntax
=NA()
- Takes no arguments. Always include empty parentheses
().
Practical Table Example
This example combines NA() with the IF function to output #N/A when actual sales data (column B) has not yet been entered, preventing misleading chart drops.
| Month | Actual Sales | Formula (for Chart Data) | Result | Notes |
|---|---|---|---|---|
| September | 120000 |
=IF(B2="", NA(), B2) |
120000 |
Number is displayed as-is |
| October | 135000 |
=IF(B3="", NA(), B3) |
135000 |
Number is displayed as-is |
| November | (Blank) | =IF(B4="", NA(), B4) |
#N/A |
Returns #N/A because it is unentered |
Common Errors and Precautions
- Propagation to calculation results: If a cell containing
NA()is directly referenced by an aggregation function such asSUMorAVERAGE, the entire aggregation result becomes a#N/Aerror. Combine it withAGGREGATEorIFERRORwhen you need to aggregate the range. - Error from specifying arguments: Entering an argument inside the parentheses, such as
=NA(1), results in a#N/A(wrong number of arguments) error.
Frequently Asked Questions
Q. Does the NA function require any arguments?
A. No, no arguments are required. Write it with empty parentheses like '=NA()'.
Q. What is the benefit of returning '#N/A' with the NA function instead of leaving a cell blank or '0'?
A. In line charts and similar graphs, it prevents unentered periods from dropping sharply to '0' and instead skips plotting those points so the chart draws naturally.