Thursday, August 11, 2016

N Function(WS)

Description

The Microsoft Excel N function converts a value to a number.

Syntax

The syntax for the N function in Microsoft Excel is:
N( value )

Parameters or Arguments

value
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

  • 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:
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

No comments:

Post a Comment