Information
All versions
◉ 7 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 — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ 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)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
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
چون سلول A2 حاوی عدد است، همان عدد برگردانده میشود.
=N(A2)
چون سلول A3 حاوی متن است، مقدار 0 برگردانده میشود.
=N(A3)
چون سلول A4 مقدار منطقی TRUE دارد، مقدار 1 برگردانده میشود.
=N(A4)
چون سلول A5 حاوی تاریخ است، شماره سریال تاریخ برگردانده میشود (بسته به سیستم تاریخ متفاوت است).
=N(A5)
چون مقدار "7" متنی است، مقدار 0 برگردانده میشود.
=N("7")
✦ 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!