Google Sheets function · Info
NA in Google Sheets: syntax and examples
NA takes no arguments and returns #N/A, the value not available error. Put it in an IF to flag missing data, then catch it with IFNA or ISNA where you need a clean result.
Syntax
NA()
Examples
The examples use this table, starting in A1:
| Day | Value |
| Mon | 10 |
| Tue | None |
| Wed | 30 |
=ISNA(NA())Result: TRUE
ISNA confirms that NA() produces #N/A.
Run in a Google Sheet (English US locale) on .
=ISNA(IF(B3="",NA(),B3))Result: TRUE
A blank cell is turned into #N/A on purpose, and ISNA sees it.
Run in a Google Sheet (English US locale) on .
=IFNA(IF(B3="",NA(),B3),"gap")Result: gap
IFNA replaces the flagged value with your own text.
Run in a Google Sheet (English US locale) on .
=SUM(B2:B4)Result: 40
Without NA() the blank cell is ignored and the total is 40.
Run in a Google Sheet (English US locale) on .
=IFERROR(SUM(B2:B4,NA()),0)Result: 0
One NA() among the arguments breaks the SUM, and IFERROR shows 0 instead.
Run in a Google Sheet (English US locale) on .
Common errors
- One #N/A inside a SUM makes the whole result #N/A. Clean the data or wrap the total in IFNA or IFERROR.
- IFNA catches only #N/A. IFNA(1/0,"x") still returns #DIV/0!. Use IFERROR when you want to hide every error.
- A #N/A made by NA() is the same error a failed lookup gives, so ISNA catches both: ISNA(VLOOKUP("zz",A2:B4,2,FALSE)) is TRUE.
Compared with Excel
Same syntax in Excel.