CONVERT Function
Convert a number from one unit of measurement to another. number is the value in from_unit, and to_unit is the unit of the result. Unit names are case-sensitive, such as "mi" and "km" for length, "lbm" and "kg" for mass, "C" and "F" for temperature or "hr" and "mn" for time. Metric prefixes such as "k" or "M" and binary prefixes such as "ki" can precede a unit. An unknown unit, or units of different quantities such as length and mass, return #N/A.
Syntax
CONVERT(number, from_unit, to_unit)
Category: Engineering. Minimum arguments: 3. Maximum arguments: 3.
Available for supported offline calculation.
Examples
=CONVERT(1,"mi","km")
The formula returns 1.609344, the number of kilometers in a mile.
Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.