This Excel tutorial explains how to use the Excel N function with syntax and examples.
Based on the spreadsheet above, the following Excel N examples would return:
Description
The Microsoft Excel N function converts a value to a number.Syntax
The syntax for the Microsoft Excel N function is:N( value )
Parameters or Arguments
value is a value to convert to a number.Note
- 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
The N function can be used in the following versions of Microsoft Excel:- Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000
Type of Excel Function
The N function can be used in Microsoft Excel as the following 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 spreadsheet above, the following Excel 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