Information function

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

A1fx=NA()
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

C4fx=IF(B4="", NA(), B4)
ABC
1MonthActual
2Jan4200
3Feb3900
4Mar#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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

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/A with conditional formatting (white font when ISNA(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.

LanguageFunction name
CzechNEDEF
DanishIKKE.TILGÆNGELIG
DutchNB
FinnishPUUTTUU
GermanNV
HungarianHIÁNYZIK
ItalianNON.DISP
Norwegian (Bokmål)IT
PolishBRAK
Portuguese (Brazil)NÃO.DISP
Portuguese (Portugal)NÃO.DISP
RussianНД
SpanishNOD
SwedishSAKNAS
TurkishYOKSAY