## Excel N Function

The N function converts a value to a number. The N function converts logical values TRUE and FALSE into 1 and 0 respectively.

=N (value)

#### Arguments

• Value (required): The value we want to convert to a number.

#### Return value

The N function returns a number or error code.

#### Function notes

1. The N function use the following rules to convert a value to a number:
• If value is a number, the exact number will be returned.
• If value is a date, a serial number of the date will be returned.
• If value is a logical value True or False, 1 or 0 will be returned respectively.
• If value is an error value, the exact error value will be returned.
• If value is anything else, 0 will be returned.
2. In most cases, it is unnecessary to use the N function, because Excel automatically converts values when needed. The N function is provided for compatibility with other spreadsheet programs.
3. In Excel, dates are stored as sequential serial numbers so we can use them in calculations.

#### Examples

To convert the values provided in the table below to numbers, please do as follows.

1. Please copy the formula below into cell D4, then press the Enter key to get the result.

=N (B4)

2.Select this result cell and drag its autofill handle down to get the rest of the results.

Notes:

1. We can also directly input a value in the formula. For example, the formula in cell D4 can be changed to:

=N (TRUE)

#### Relative Functions:

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

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 ðŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functionsâ€¦ Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.