MS Excel: How to use the N Function (WS)
This Excel tutorial explains how to use the Excel N function with syntax and examples.
Description
The Microsoft Excel N function converts a value to a number.
The N function is a built-in function in Excel that is categorized as an Information Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the N function can be entered as part of a formula in a cell of a worksheet.
Syntax
The syntax for the N function in Microsoft Excel is:
N( value )
Parameters or Arguments
- value
- A value to convert to a number.
Returns
If value is a number, the N function returns a number.
If value is a date, the N function returns the date as a serial number.
If value is TRUE, the N function will return 1.
If value is FALSE, the N function will return 0.
If value is an error, the error value is returned.
For all other values, the N function will return 0.
Applies To
- Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
Type of Function
- Worksheet function (WS)
Example (as Worksheet Function)
Let's look at some Excel N function examples and explore how to use the N function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following N examples would return:
=N(A1) Result: 35 =N(A2) Result: 0 =N(A3) Result: 1 =N(A4) Result: 0 =N(A5) Result: #DIV/0! =N(107) Result: 107 =N(DATE(2012,8,16)) Result: 41137
Advertisements