N Function in Excel: Turn a Value Into a Number

N Function in Excel: Turn a Value Into a Number featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 13 October 2026

InformationLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. N in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

N returns numbers unchanged, TRUE as 1 and text as 0. Its oddest use is hiding a note inside a formula.

Advertisement

Syntax

=N(value)
Argument What it means
value Anything.

Examples

Example 1

=SUM(B2:B10)+N("Excludes returns, see sheet R")

A note inside the formula that adds 0.

N in practice

Where you will use it

  • Add an invisible comment inside a formula: +N("note")
  • Turn TRUE into 1
  • Old Lotus compatibility

Worked example

ValueFormulaResult
TRUE=N(A2)1
Pune=N(A3)0
42=N(A4)42

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Text numbersN("5") is 0; use VALUE
DatesReturn their serial number

VALUE Β· ISNUMBER

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Information (IS…) functions15 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *