The CONVERT function in Excel is a powerful tool designed to facilitate the conversion of values between different units of measure. Whether you need to switch from kilometers to miles or from Celsius to Fahrenheit, this function simplifies the process with ease and accuracy, making it indispensable for calculations involving various measurement systems.
Syntax
CONVERT(number, from_unit, to_unit)
- number: The numeric value you wish to convert.
- from_unit: The unit of measurement from which you want to convert.
- to_unit: The unit of measurement to which you want to convert.
Example #1
CONVERT(10, "km", "mi")
This function converts 10 kilometers to miles, resulting in approximately 6.2137 miles.
Example #2
CONVERT(100, "C", "F")
This function converts 100 degrees Celsius to Fahrenheit, producing a result of 212 degrees Fahrenheit.
Example #3
CONVERT(5, "m", "cm")
This function converts 5 meters to centimeters, resulting in 500 centimeters.
Error handling
- VALUE! – Occurs if the number is non-numeric or if either the from_unit or to_unit is invalid.
- N/A – Happens when the specified units do not exist within the conversion table.
- NUM! – Indicates that the input number is invalid, typically due to incompatible units.