Category: FUNCTION | Updated: 2026-11-22
How to Use the CONVERT Function in Google Sheets | Convert Units of Length, Weight, Temperature, and More
Syntax
=CONVERT(value, start_unit, end_unit)
- value: Specifies the numeric value (in
start_unit) to convert. - start_unit: Specifies the string code representing the original unit (e.g.,
"in","lb","F"). - end_unit: Specifies the string code representing the target unit (e.g.,
"cm","kg","C").
Practical Example with a Table
Here are practical examples of unit conversions commonly used in business—such as length, weight, temperature, and time—using the CONVERT function.
| Category | Value | Start Unit | End Unit | Formula | Result |
|---|---|---|---|---|---|
| Length (in → cm) | 10 |
in |
cm |
=CONVERT(B2, C2, D2) |
25.4 |
| Weight (lb → kg) | 100 |
lbm |
kg |
=CONVERT(B3, C3, D3) |
45.359237 |
| Temperature (°F → °C) | 86 |
F |
C |
=CONVERT(B4, C4, D4) |
30 |
| Time (hr → min) | 2.5 |
hr |
mn |
=CONVERT(B5, C5, D5) |
150 |
Common Errors and Notes
- #N/A Error: Occurs if you specify a nonexistent unit code, use the wrong capitalization, or attempt to convert between incompatible categories (such as length to weight).
- Watch Out for Unit Code Abbreviations: Some unit codes differ from everyday abbreviations—for example, liters are
"l"or"L", pounds are"lbm", hours are"hr", and minutes are"mn". - #VALUE! Error: Occurs if the first argument
valueis a non-numeric string.
Frequently Asked Questions
Q. Are unit codes in the CONVERT function case-sensitive?
A. Yes, they are strictly case-sensitive. For example, "m" stands for meters, whereas "M" is invalid (to avoid confusion with the mega prefix). Entering the wrong case causes a "#N/A" error.
Q. Can I add metric prefixes such as kilograms (kg) or millimeters (mm)?
A. Yes. You can prepend prefixes like `k` (kilo), `c` (centi), `m` (milli), or `M` (mega) directly before base metric units, such as `"kg"` or `"mm"`.