This post will guide you how to use **Excel N function** with syntax and examples in Microsoft excel.

### Description

The Excel N function converts a value to a numeric value. And the N function can be used to convert the logical value TRUE as 1 and false value as 0. If you try to convert a text value, and the N function will return 0.

The N function is a build-in function in Microsoft Excel and it is categorized as an Information Function.

The N function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

### Syntax

The syntax of the N function is as below:

**=N(value)**

**Where** the N function argument is:

**Value** – This is a required argument. The value that you want to convert.

N converts values listed in the following table.

**If value is or refers to** |
**N returns** |

A number |
That number |

A date, in one of the built-in date formats available in Microsoft Excel |
The serial number of that date |

TRUE |
1 |

FALSE |
0 |

An error value, such as #DIV/0! |
The error value |

Anything else |
0 |

### Excel N Function Example

The below examples will show you how to use Excel N Function to convert a value to a number.

**#1 **to convert the value in Cell B1 that contains a number, and the number will be returned, using the following formula:

**= N (B1)**

**#2 **to convert the value in Cell B2 that contains text, and the zero will be returned, using the following formula:

**= N (B2)**

**#3 **to convert the value in Cell B3 that contains a logical value TRUE, and 1 is returned, using the following formula:

**= N (B3)**

### More Excel N Function Examples

- Count Number of Cells with String Length greater than X

You can create a new formula based on the SUMPRODUCT function, the N function and the LEN function to check the string length of each cell and also get the total number that the string length is greater than number 10.……

Related Posts

Excel DSTDEVP Function
This post will guide you how to use Excel DSTDEVP function with syntax and examples in Microsoft excel. Description The Excel DSTDEVP returns the standard deviation of a population based on the entire population of numbers in a column or ...

Excel DSTDEV Function
This post will guide you how to use Excel DSTDEV function with syntax and examples in Microsoft excel. Description The Excel DSTDEV returns the standard deviation of a population based on a sample of numbers in a column or database ...

Excel DMIN Function
This post will guide you how to use Excel DMIN function with syntax and examples in Microsoft excel. Description The Excel DMIN returns the minimum value from a database or a column of a list that matches the specified conditions. ...

Excel DPRODUCT Function
This post will guide you how to use Excel DPRODUCT function with syntax and examples in Microsoft excel. Description The Excel DPRODUCT returns the product of values from a set of records that match criteria that you specify. The DPRODUCT ...

Excel XIRR Function
This post will guide you how to use Excel XIRR function with syntax and examples in Microsoft excel. Description The Excel XIRR function returns the internal rate of return for a series of cash flows that is not necessarily periodic. ...

Excel VDB Function
This post will guide you how to use Excel VDB function with syntax and examples in Microsoft excel. Description The Excel VDB function calculates the depreciation of an asset for a specified period based on the double declining balance method. ...

Excel SYD Function
This post will guide you how to use Excel SYD function with syntax and examples in Microsoft excel. Description The Excel SYD function calculates the sum-of-years’digits depreciation of an asset for a specified period. And it will return a numeric ...

Excel SLN Function
This post will guide you how to use Excel SLN function with syntax and examples in Microsoft excel. Description The Excel SLN function calculates the depreciation of an asset for one period based on the straight line depreciation. And it ...