
EngineeringLevel: IntermediateAvailable in: Excel 2007+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Common errors and fixes
- Related functions
CONVERT changes units: km to miles, °C to °F, kg to pounds, hours to minutes. Unit codes are case-sensitive.
Syntax
=CONVERT(number, from_unit, to_unit)
| Argument |
What it means |
from_unit |
Text code such as “km”, “mi”, “C”, “F”, “kg”, “lbm”. |
Examples
Example 1
=CONVERT(A2, "C", "F")
Celsius to Fahrenheit.
Example 2
=CONVERT(B2, "km", "mi")
Kilometres to miles.
Common errors and fixes
| You see |
Why, and the fix |
#N/A |
Unknown unit code (check the case — “Kg” fails), or units of different kinds such as km to kg. |
ROUND
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong