NA function
Returns the #N/A error on purpose, to mark a value as not available — for example so a chart skips a point instead of plotting zero.
Available in All versions of Excel, including Microsoft 365 and Excel for the web
In every Excel versionWorks in Google Sheets
Syntax
NA()This function takes no arguments.
Returns: The #N/A error value.
How NA works
NA() deliberately produces the #N/A error. That sounds odd, but #N/A is the spreadsheet's way of saying "no value here yet", and some features treat it specially. Line charts, for example, skip #N/A points instead of dropping the line to zero, so a sales forecast chart can stop neatly at the last real month rather than crashing to 0 for the months still to come.
Using NA() also makes missing data impossible to overlook: any formula that depends on the cell also returns #N/A, so a total cannot quietly understate itself. When you later want to report on such cells, ISNA finds them and IFNA replaces them. The empty brackets are required; typing #N/A directly into a cell gives the same error value.
Examples
1Return #N/A directly
| A | |
|---|---|
| 1 | #N/A |
Result: #N/A
The cell shows the #N/A error. It is not a mistake but a deliberate marker.
2Gaps instead of zeros in a chart
| A | B | C | |
|---|---|---|---|
| 1 | Month | Actual | |
| 2 | Jan | 4200 | |
| 3 | Feb | 3900 | |
| 4 | Mar | #N/A |
Result: #N/A
March has no actual figure yet, so the helper column returns #N/A. A line chart built on column C ends at February instead of plunging to zero in March.
Tips
- Charts plot
""from formulas as zero in many chart types, which is why NA() is the better placeholder for missing chart data. - Hide the visible
#N/Awith conditional formatting (white font whenISNA(C2)is TRUE) if the table is also printed.
Google Sheets
NA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
NA in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | NEDEF |
| Danish | IKKE.TILGÆNGELIG |
| Dutch | NB |
| Finnish | PUUTTUU |
| German | NV |
| Hungarian | HIÁNYZIK |
| Italian | NON.DISP |
| Norwegian (Bokmål) | IT |
| Polish | BRAK |
| Portuguese (Brazil) | NÃO.DISP |
| Portuguese (Portugal) | NÃO.DISP |
| Russian | НД |
| Spanish | NOD |
| Swedish | SAKNAS |
| Turkish | YOKSAY |