CONVERT Function in Excel: Convert Units

⏱ 1 min readUpdated 28 September 2026

EngineeringLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Common errors and fixes
  6. 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 article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong