Syntax
| Parameter | Description |
|---|---|
| value | Parameter of the N function. |
Examples
Convert logical to number
=SUM(A1:A10) + N(B1="Bonus")*500
Inline formula comment
=A1*0.08 + N("Sales tax rate")
Date to serial number
=N(DATE(2026,1,1))
Common Errors
Occurs if the argument is an error value. N does not suppress errors — they pass through.
Tips
N("your note here") always returns 0, so you can add it anywhere in a formula as a self-documenting comment without affecting the result.
N is the explicit way to convert booleans to numbers. In most formulas you can also multiply by 1 or add 0 to achieve the same thing.
N converts a date to its serial number. This is the same number you'd see if you formatted the date cell as a number.
Try N in Viztab
Import your data and use N with 370+ other formulas. No signup required.
Open Viztab