Yes, Excel can convert units for you. The built-in CONVERT function changes measurements from one unit to another, for example miles to kilometres, pounds to kilograms, or Fahrenheit to Celsius. You type a formula such as =CONVERT(A2,"mi","km") and Excel returns the converted value. No add-ins or manual conversion tables are needed. For units Excel does not recognise, you can still convert with a simple multiplication formula using the correct conversion factor.
What You'll Need
- Excel on Windows or Mac, or Excel for the web. The CONVERT function is available in all current versions.
- Your source numbers in a cell or column.
- The exact unit text codes Excel expects (listed in the steps below).
Exact menu labels and formula behaviour can differ slightly between Excel versions and platforms, but the CONVERT syntax is the same everywhere.
Step-by-Step
- Put your value in a cell. For example, type
10into cell A2. This is the number you want to convert. - Find the correct unit codes. Excel uses short text codes, and they must match exactly, including capitalisation. Common ones include:
"mi"and"km"for distance,"ft"and"m"for length,"lbm"and"kg"for weight,"gal"and"l"for volume,"F"and"C"for temperature, and"mph"and"km/h"for speed. - Type the CONVERT formula. In an empty cell, enter
=CONVERT(A2,"mi","km"). The three parts are: the number or cell reference, the unit you are converting from, and the unit you are converting to, both in double quotes. - Press Enter. Excel returns the result. In this example, 10 miles becomes about 16.09 kilometres.
- Copy the formula down a column. If you have a list of values in column A, drag the formula's fill handle down (or double-click it) to convert every row at once. Use an absolute reference like
=$A2patterns only if you mix columns; a plain relative reference such asA2usually works best when filling down. - Convert temperatures correctly. Temperature works the same way:
=CONVERT(A2,"F","C")turns Fahrenheit into Celsius. Note that Celsius is coded"C"and Fahrenheit is"F"(capital letters). Excel handles the offset in the temperature scales for you, so never just multiply by a ratio for temperature. - Add prefixes for very large or small units. You can combine certain unit codes with metric prefixes such as
"k"(kilo),"m"(milli) or"c"(centi). For example,=CONVERT(A2,"km","m")or=CONVERT(A2,"g","mg"). Check the prefix works with your unit by testing one cell first. - Use a multiplication formula for unsupported units. If Excel does not recognise the units, convert manually. For example, to convert square metres to square feet, use
=A2*10.7639, where 10.7639 is the number of square feet in one square metre. Look up the exact factor from a reliable reference before relying on the results. - Round the result if needed. Converted values often have many decimals. Wrap the formula in ROUND:
=ROUND(CONVERT(A2,"mi","km"),1)gives one decimal place. - Save your work. Keep a note of the unit codes you used, either in a header cell (for example, "Distance (km)") or in a separate reference column, so anyone reading the sheet knows what the numbers mean.
Common Mistakes
- Wrong capitalisation. Unit codes are case-sensitive.
"LB"fails; the correct code for pounds is"lbm". A#N/Aerror almost always means an unrecognised or misspelled code. - Leaving out the quotation marks. Unit codes must be text in double quotes:
=CONVERT(A2,"mi","km"), not=CONVERT(A2,mi,km). - Converting between incompatible categories. You cannot convert weight to distance. Mixing categories produces an error.
- Confusing mass and force. Pounds mass is
"lbm"; pound force is"lbf". Using the wrong one gives wrong answers in physics-type calculations. - Forgetting to label converted columns. A bare number in a column can be misread as the original unit. Always add the unit to the header.
- Using CONVERT for temperature ratios. A 10-degree gap in Celsius is not a 10-degree gap in Fahrenheit in absolute terms. Let CONVERT handle all temperature conversions rather than applying ratios yourself.
Tips
- Type
=CONVERT(and pause; Excel's formula autocomplete shows the available unit categories and codes, which is the fastest way to discover valid codes. - Put the "from" and "to" units in their own cells and reference them:
=CONVERT(A2,$E$1,$E$2). Then you can switch units for the whole sheet by changing two cells. - Use
CONVERTinside other formulas, for example=CONVERT(A2,"mi","km")*B2to convert and scale in one step. - For area and volume, some compound codes exist, such as
"ft2"or"m3"style suffixes in certain categories, but coverage is limited. Test in one cell; if you get an error, use a multiplication factor instead. - Format the result cells with a sensible number of decimals using the Number group on the Home tab (Windows/Mac) rather than leaving long raw decimals.
Troubleshooting
- #N/A error: one of your unit codes is misspelled, wrongly capitalised, or not supported. Check the code against the autocomplete list that appears while typing the formula.
- #VALUE! error: the first argument is not a number. Make sure the referenced cell contains a numeric value, not text that looks like a number (look for a leading apostrophe or left alignment, which indicate text).
- #NAME? error: the function name is misspelled, or you are using a very old Excel version that lacks CONVERT. Retype the formula carefully.
- Results seem wrong: verify the direction of conversion (from-unit first, to-unit second) and sanity-check one value against a known conversion, such as 1 mile ≈ 1.609 km.
- Formula returns the same value: your from and to units are probably identical. Check both codes.
Frequently Asked Questions
Does Excel have a built-in unit converter?
Yes, the CONVERT function. Enter =CONVERT(value,"from_unit","to_unit") in any cell and Excel does the conversion. There is no separate converter window; it works as a worksheet formula.
What unit codes should I use?
Codes are short text strings: "mi", "km", "ft", "m", "lbm", "kg", "gal", "l", "F", "C", "mph", "km/h" and many more. Typing =CONVERT( shows the full list via autocomplete.
Can Excel convert square metres to square feet?
Not reliably with CONVERT. Compound units like area are only partially supported. The dependable method is multiplication: =A2*10.7639 converts square metres to square feet.
Can I convert a whole column at once?
Yes. Write the formula in the first row of a helper column, then drag the fill handle down or double-click it to fill the column. Each row converts its own value automatically.
Does CONVERT work in Google Sheets?
Yes, Google Sheets supports CONVERT with the same syntax and similar unit codes, though the supported unit list differs slightly. Test your specific codes in one cell first.
Why does CONVERT give me a #N/A error?
Almost always because a unit code is misspelled, wrongly capitalised, or not in Excel's supported list. Codes are case-sensitive, so "LB" fails while "lbm" works.