The Google Sheets function CONVERT is a powerful tool designed to facilitate the conversion of numeric values from one unit of measure to another. This function is particularly useful for users dealing with diverse systems of measurement, enabling seamless calculations and data analysis across different units. Whether converting between metric and imperial systems or adjusting temperature scales, the CONVERT function simplifies the process and enhances accuracy in data management.
Syntax
CONVERT(value, from_unit, to_unit)
- value: The numeric value to be converted.
- from_unit: The unit of measure for the value being converted, represented as a text string.
- to_unit: The target unit of measure to which the value should be converted, also represented as a text string.
Example #1
CONVERT(1, "km", "mi")
The function converts 1 kilometer into miles, yielding a result of approximately 0.6214 miles.
Example #2
CONVERT(32, "F", "C")
This example converts 32 degrees Fahrenheit to Celsius, resulting in 0 degrees Celsius.
Example #3
CONVERT(10, "g", "kg")
The function takes 10 grams and converts it to kilograms, resulting in 0.01 kilograms.
Error handling
- N/A: Indicates that the specified ‘from_unit’ or ‘to_unit’ is not recognized.
- VALUE! Appears when there is an issue with the numeric ‘value’ or if the units provided are invalid.
- NUM!: This error occurs when a unit of measure cannot be converted for the given value, such as attempting to convert between incompatible units.