Contact

N in Excel: Convert Logical Values Without Parsing Text

Information Intermediate Microsoft Excel

Learn Excel N conversions with numeric text, Boolean masks, date serials and safe literal annotations, including error propagation.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: N preserves numbers, converts TRUE to 1 and FALSE to 0, and turns text into zero. In particular, =N("25") is 0, not 25; N is not a numeric-text parser.

Availability and version history

  • Introduced: first introduction version is not established by the official history reviewed; the current product list is not a launch record.
  • Availability: official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
  • Checked: October 14, 2026; official N reference. Documentation and independently modeled examples; no native Excel execution or broader platform certification.

Syntax and conversion rules

=N(value)

The one required argument is a value or reference. Microsoft documents dates as their serial numbers and errors as the same errors; other nonnumeric, nonlogical values map to zero. The function exists partly for spreadsheet compatibility, and many ordinary Excel calculations already perform their own conversions.

Choose N when its exact conversion rule is wanted. Do not add it automatically to every input as a cleanup step.

Example 1: inspect an import before converting it

Enter the following in A2:A8 and put =N(A2) in B2, filled down.

Cell Entry Expected N result
A2 number 25 25
A3 ="25" 0
A4 =TRUE() 1
A5 =FALSE() 0
A6 ="Pending" 0
A7 ="" 0
A8 =1/0 #DIV/0!

The numeric-text row shows the main risk: an intended quantity can disappear into zero without an error. For this simple ASCII string, =VALUE(A3) is 25, whereas =N(A3) is 0. Decide whether the field is a quantity or an identifier before choosing a conversion.

N also does not suppress errors. The final row still requires investigation or an explicitly chosen IFERROR policy. Converting an error to zero would be a separate decision with consequences for totals.

Example 2: make a numeric indicator from a condition

Put the numbers 8, 12, 10, 7, 15 in D2:D6. In E2 use:

=N(D2>=10)

Fill down. Expected indicators are 0, 1, 1, 0, 1, whose sum is 3. They represent a clearly defined threshold applied to an all-numeric dataset.

If F2:F6 hold weights 2, 3, 4, 5, 6, use =E2*F2 in G2 and fill. Contributions are 0, 3, 4, 0, 6, totaling 13. That is the weight of qualifying rows, not the count of qualifying rows. Both results can be audited from the helper columns.

If imported D values can be text, errors or blanks, validate them first. N converts the result of the comparison; it does not establish that the comparison received a valid quantity.

Example 3: date serials and display format

Put =DATE(2026,10,14) in J2. In a workbook using Excel’s 1900 date system, =N(J2) has expected numeric result 46309. Format the result as General or Number to see the serial rather than another date display.

A different workbook date system changes the serial. N does not convert between date systems and does not validate that a number represents an intended date. See the DATE guide for the separately documented date-system scope; no historical 1900 edge case is inferred from this modern-date example.

Example 4: a literal annotation in a numeric expression

Put 12, 18, 25 in L2:L4. This formula retains the numeric total 55:

=SUM(L2:L4)+N("Receipt amounts, excluding delivery")

The quoted annotation contributes zero. This can make a small numeric formula more legible, but it is not an audit log and does not prove anyone checked the receipts. A changed literal comment does not change the arithmetic.

Do not substitute an arbitrary cell for the literal annotation: +N(TRUE()) would add one, and +N(1/0) would introduce an error. Do not append this pattern to a text-returning formula and assume its output remains text; the plus operator requests arithmetic.

ISNUMBER tests a type without changing it; VALUE parses suitable numeric text. N performs its own narrower conversion. These controls do not certify rich data types, very large integers or all locale-dependent date/text conversions.

References and verification

The datasets are fictional. Expected results follow the cited rules and independent arithmetic or type models; they are not native application captures. Examples use English function names and comma argument separators.