Information All versions ◉ 36 views

=N()

Returns a value converted to a number.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=N(value)
Hover argument names in the table for details.
Output typeNumber
Popularity10 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =N() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download N.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
value Any type Required The value you want converted. N converts values listed in the following table. A number = That number; A date, in one of the built-in date formats available in Microsoft Excel = The serial number of that date; TRUE = 1; FALSE = 0; An error value, such as #DIV/0! = The error value; Anything else = 0.

▣ Examples

▦ Data
CellValue
A2 7
A3 Even
A4 TRUE
A5 4/17/2011
A6 7
A7 Even
A8 TRUE
A9 4/17/2011
Because A2 contains a number, the number is returned. =N(A2)
Result: 7
Because A3 contains text, 0 is returned. =N(A3)
Result: 0
Because A4 is the logical value TRUE, 1 is returned. =N(A4)
Result: 1
Because A5 is a date, the serial number of the date is returned (varies with the date system used). =N(A5)
Result: 40650
Because "7" is text, 0 is returned. =N("7")
Result: 0

§ Remarks

  • It is not generally necessary to use the N function in a formula, because Excel automatically converts values as necessary. This function is provided for compatibility with other spreadsheet programs.
  • Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

✦ Tips

  • It is not generally necessary to use the N function in a formula, because Excel automatically converts values as necessary. This function is provided for compatibility with other spreadsheet programs.
  • Excel stores dates as sequential serial numbers so they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,448 days after January 1, 1900.

⚠ Common Errors

#DIV/0! A number = That number; A date, in one of the built-in date formats available in Microsoft Excel = The serial number of that date; TRUE = 1; FALSE = 0; An error value, such as #DIV/0! = The error value; Anything else = 0.
Fix: بررسی کنید سلول مرجع حاوی خطا نباشد؛ در صورت نیاز با تابع IFERROR خطا را مدیریت کنید.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.