Excel NA Function
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.
The NA function takes no arguments.
The NA function returns the error value #N/A.
- 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.
- The NA function is provided for compatibility with other spreadsheet programs.
- When other formulas refer to cells that contain #N/A, they also return #N/A.
- 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 ( )
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.
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.
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.