N Function

Excel Functions › Information

All versions Information

The Excel N function converts a value to a number: numbers stay, dates become serials, TRUE becomes 1, and text becomes 0. Its most popular modern use is adding in-formula comments.


Quick answer: coerce to a number:
=N(TRUE) // returns 1

Syntax

=N(value)
ArgumentDescription
valueRequiredA value to coerce to a number.

How to use it

N is rarely needed for conversion today, but it has a beloved trick: append +N("note") to document a formula inline, since N of text is 0 and doesn’t change the result:

=A2*B2+N("price times qty") // the +N(...) is a self-documenting comment

Try it: interactive demo

Live demo

Pick an input and watch the formula and result update.

Result:

Practice workbook

📊
Download the free N practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does N return for text?
0 — which is exactly why +N("comment") is a safe inline note.
N values for TRUE/FALSE?
TRUE → 1, FALSE → 0.
Is N still needed for conversion?
Rarely — Excel coerces automatically in most math. The comment trick is its main modern use.
N vs VALUE?
VALUE converts text that looks like a number to that number; N converts text to 0. Different jobs.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: ISERROR · ISNUMBER · ISBLANK · IFERROR · NA