N function in Google Sheets
Returns the argument provided as a number.
=N(value)N syntax and parameters
One argument, one required.
- valueanyRequired
The argument to be converted to a number. If value is TRUE, N returns 1. If value is a number, the number is returned. If value is a date or time, N returns a generated serial number, based on the number of days since December 30, 1899. Negative values are interpreted as days before this date, and fractional values indicate time of day past midnight. If value is FALSE or any value not listed above, N returns 0.
N examples
Formulas you'll actually reuse.
A date as its serial number; text becomes 0, TRUE becomes 1:
=N(D2)Result
46248An inline comment — N of text is 0, so the sum is unchanged:
=SUM(C2:C200) + N("Total after the Q3 refunds")Result
148200
N in Excel
Same name — your formula ports as-is.
Try N in the playground
Edit the example — nothing to install.
Preloaded with the N formula from Example 1 — change anything and watch it respond.
Related functions
More ways Google Sheets gets this done.
- CELLReturns the requested information about the specified cell.InfoExcel
- ERROR.TYPEReturns a number corresponding to the error value in a different cell.InfoExcel
- ISBLANKChecks whether the referenced cell is empty.InfoExcel
- ISDATEReturns whether a value is a date.InfoNo Excel equivalent
- ISEMAILChecks whether a value is a valid email address.InfoNo Excel equivalent
- ISERRChecks whether a value is an error other than `#N/A`.InfoExcel