Skip to main content

Excel NA Function

Author: Zhoumandy Last Modified: 2022-06-17

The NA function returns the #N/A error value. #N/A means “no value available”. The NA function can be used to mark empty cells so as to avoid including empty cells in the calculation.

na function 1


=NA ( )


The NA function takes no arguments.

Return value

The NA function returns the error value #N/A.

Function notes

  1. Even though the NA function syntax has no arguments, we must include the empty parentheses with the function name. If not, Excel will not recognize it as a function.
  2. The NA function is provided for compatibility with other spreadsheet programs.
  3. When other formulas refer to cells that contain #N/A, they also return #N/A.
  4. You can also input the value #N/A directly into a cell as text.


Example One: Basic Usage

As the below screenshot shows, the cell B4 is empty. To get the #N/A error value, please copy the formula below into cell B4, then press the Enter key to get the result.

=N ( )

na function 2

Example Two: Use NA Function in Other Formulas

In this case, we want to know the total sales without including the empty cells into the calculation. Please do as follows.

1. Please copy the formula below into cell E4, then press the Enter key to get the result.

=IF (B4="", NA(), B4*C4)

2.Select this result cell and drag its autofill handle down to get the rest of the results.

na function 3

Notes: In the formula above, the IF function is used to test if cell B4 is empty. If it is, it returns NA(), which returns the #N/A error. If B4 is not empty, IF returns B4*C4.

Relative Functions:

  • Excel EVEN Function
    The EVEN function rounds numbers away from zero to the nearest even integer.

  • Excel EXP Function
    The EXP function returns the result of the constant e raised to the nth power.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations