Engineering
All versions
◉ 27 views
=CONVERT()
units for the result. CONVERT accepts the following text values (in quotation marks) for from_unit and to_unit.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=CONVERT(number,from_unit,to_unit)
Hover argument names in the table for details.
Output typeNumber
Popularity35 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =CONVERT() 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 |
|---|---|---|---|
number |
Number | Required | value in from_units to convert. |
from_unit |
Text | Required | units for number. |
to_unit |
Text | Required | units for the result. CONVERT accepts the following text values (in quotation marks) for from_unit and to_unit. |
▣ Examples
Converts 1 pound mass to kilograms.
=CONVERT(1, "lbm", "kg")
Result:
0.4535924
Converts 68 degrees Fahrenheit to Celsius.
=CONVERT(68, "F", "C")
Result:
20
Data types are not the same, so an error is returned.
=CONVERT(2.5, "ft", "sec")
Result:
#N/A
Converts 100 square feet into square meters.
=CONVERT(CONVERT(100,"ft","m"),"ft","m")
Result:
9.290304
§ Remarks
- If the input data types are incorrect, CONVERT returns the #VALUE! error value.
- If the unit does not exist, CONVERT returns the #N/A error value.
- If the unit does not support a binary prefix, CONVERT returns the #N/A error value.
- If the units are in different groups, CONVERT returns the #N/A error value.
- Unit names and prefixes are case-sensitive.
✦ Tips
- Unit names and prefixes are case-sensitive.
⚠ Common Errors
#VALUE!
If the input data types are incorrect, CONVERT returns the #VALUE! error value.
Fix: برای number مقدار عددی و برای واحدها متن داخل گیومه وارد کنید.
#N/A
If the unit does not exist, CONVERT returns the #N/A error value. If the unit does not support a binary prefix, CONVERT returns the #N/A error value. If the units are in different groups, CONVERT returns the #N/A error value.
Fix: Check the unit symbols and their uppercase/lowercase spelling
💬 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!