The NA function in Google Sheets returns the "value not available" error, #N/A, without requiring any arguments. It's commonly used as a placeholder to flag missing data or to force downstream formulas to surface an error intentionally. Dive into our comprehensive guide to master its application.
Parameters
This function takes no parameters.
Step-by-Step Tutorial
-
Returning the
#N/Aerror:- Example:
=NA() - Result:
#N/A
- Example:
-
Using
NAto flag missing data:- Example:
=IF(A1="", NA(), A1*2) - Result: Returns
#N/AifA1is empty, otherwise doubles the value inA1.
- Example:
Use Cases and Scenarios
- Chart Data: Insert
#N/Ain a data range so Google Sheets charts skip the point instead of plotting it as zero. - Data Validation: Mark incomplete records with a clear
#N/Aflag for later review. - Formula Testing: Deliberately trigger an
#N/Aerror to test how other formulas handle error propagation.
Related Functions
ISNA: Checks whether a value is the#N/Aerror.ISERROR: Checks whether a value is an error.ERROR.TYPE: Returns a number corresponding to the error value in a cell.
Related Articles
No related articles available for the NA function.