CONVERT

Engineering Functions
(4.8/5)

Converts a number from one measurement system to another. Supports conversions between distance, weight, temperature, volume, energy, pressure, force, and many other measurement units across different systems (metric, imperial, US customary).

Interactive Formula Tester

=CONVERT("")

Complete Theory & Understanding

Master the fundamentals of Excel CONVERT function

Core Concept

The CONVERT function is Excel's comprehensive unit conversion system that translates numeric values between different measurement units across multiple categories including distance, weight, temperature, volume, energy, pressure, force, power, magnetism, and more. It supports conversions between metric (SI), imperial, US customary, and other measurement systems. The function uses standardized unit codes to identify source and target units, enabling precise engineering calculations, international data standardization, and scientific computations.

Why Use CONVERT?

  • Convert measurements in engineering designs, blueprints, and technical specifications between metric and imperial systems
  • Standardize measurement units in scientific datasets for consistent analysis and reporting
  • Convert product specifications, shipping weights, and measurements for global commerce and trade
  • Convert temperature readings between Celsius, Fahrenheit, and Kelvin for weather, manufacturing, and laboratory applications

Key Characteristics

Multi-Category Support

Supports 11 major measurement categories: distance, weight/mass, time, temperature, volume, energy, power, force, pressure, magnetism, and light. Each category has multiple unit codes.

Distance: "m", "ft", "mi", "km" | Weight: "kg", "lbm", "ozm" | Temperature: "C", "F", "K"

Standardized Unit Codes

Uses internationally recognized unit abbreviations that are case-sensitive. Codes follow scientific notation standards (e.g., "m" for meter, "kg" for kilogram, "J" for joule).

CONVERT(100, "m", "ft") - "m" and "ft" must be exact codes

Precise Conversion Formulas

Uses accurate conversion factors based on international standards. Temperature conversions use exact formulas (C to F: F = C × 9/5 + 32), while other units use precise conversion factors.

1 meter = 3.280839895 feet (exact conversion factor)

Error Handling

Returns #N/A error for incompatible unit pairs (e.g., trying to convert distance to weight), #VALUE! for invalid unit codes, and handles edge cases appropriately.

CONVERT(100, "m", "kg") → #N/A (incompatible units)

Compound Units Support

Supports compound units using mathematical notation like "^2" for squared (area) and "^3" for cubed (volume), and "/" for rates (e.g., "km/h" for speed).

CONVERT(100, "m^2", "ft^2") for area, CONVERT(100, "km/h", "mph") for speed

Function Anatomy

=CONVERT(parameters...)
Required
Parameters:

Function-specific parameters

Returns
Return Value:

Function-specific return type

Primary Use Cases

Engineering Calculations

Convert measurements in engineering designs, blueprints, and technical specifications between metric and imperial systems

Scientific Data Analysis

Standardize measurement units in scientific datasets for consistent analysis and reporting

International Business

Convert product specifications, shipping weights, and measurements for global commerce and trade

Temperature Monitoring

Convert temperature readings between Celsius, Fahrenheit, and Kelvin for weather, manufacturing, and laboratory applications

Energy Management

Convert energy units (joules, BTUs, calories) for power consumption analysis and efficiency calculations

Construction & Architecture

Convert building dimensions, material weights, and areas between measurement systems for construction projects

Theory Summary

Precise

Exact matching required

Position-Based

Returns numeric position

Error-Safe

Handles missing text gracefully

Syntax & Parameters

=CONVERT(number, from_unit, to_unit)
Required
number:

The numeric value you want to convert. Can be a number, cell reference, or formula that returns a number.

Required
from_unit:

The unit code for the current measurement system. Must be a text string in quotes (e.g., "m" for meter, "kg" for kilogram, "C" for Celsius). Unit codes are case-sensitive.

Required
to_unit:

The unit code for the target measurement system. Must be a text string in quotes matching the same category as from_unit (e.g., "ft" for feet, "lb" for pound, "F" for Fahrenheit).

Returns
Return Value:

The converted number in the target unit system

Description: Converts a number from one measurement unit to another compatible unit

Interactive Examples

Distance Conversion - Meters to Feet

Convert meters to feet for international measurements

"100 meters"
=CONVERT(100, "m", "ft")
328.0839895 feet

Converts 100 meters to approximately 328.08 feet. Useful for converting metric distances to imperial measurements.

VBA Implementation & Automation

Basic CONVERT in VBA

Using CONVERT function in VBA through WorksheetFunction

Sub CONVERTExample()
    Dim result As Double
    
    ' Convert meters to feet
    result = Application.WorksheetFunction.Convert(100, "m", "ft")
    Range("A1").Value = result
    MsgBox "100 meters = " & result & " feet"
End Sub

' Convert temperature
Sub ConvertTemperature()
    Dim celsiusTemp As Double
    Dim fahrenheitTemp As Double
    
    celsiusTemp = Range("A1").Value
    fahrenheitTemp = Application.WorksheetFunction.Convert(celsiusTemp, "C", "F")
    
    Range("B1").Value = fahrenheitTemp
End Sub

' Convert multiple values
Sub ConvertRange()
    Dim cell As Range
    Dim convertedValue As Double
    
    For Each cell In Range("A1:A10")
        If IsNumeric(cell.Value) Then
            convertedValue = Application.WorksheetFunction.Convert(cell.Value, "kg", "lbm")
            cell.Offset(0, 1).Value = convertedValue
        End If
    Next cell
End Sub

' Error handling for CONVERT
Sub ConvertWithErrorHandling()
    Dim originalValue As Double
    Dim convertedValue As Variant
    
    originalValue = Range("A1").Value
    
    On Error Resume Next
    convertedValue = Application.WorksheetFunction.Convert(originalValue, "m", "ft")
    On Error GoTo 0
    
    If IsNumeric(convertedValue) Then
        Range("B1").Value = convertedValue
    Else
        Range("B1").Value = "Conversion Error"
    End If
End Sub

Business Applications

Distance Conversions

Convert between metric and imperial distance units

=CONVERT(A1, "km", "mi")

Temperature Conversions

Convert between Celsius, Fahrenheit, and Kelvin

=CONVERT(A1, "C", "F")

Weight Conversions

Convert between kilograms, pounds, and ounces

=CONVERT(A1, "kg", "lbm")

Volume Conversions

Convert between liters, gallons, and cubic units

=CONVERT(A1, "l", "gal")

Energy Conversions

Convert between joules, BTUs, and calories

=CONVERT(A1, "J", "BTU")

Speed Conversions

Convert between km/h, mph, and m/s

=CONVERT(A1, "km/h", "mph")

Common Issues & Solutions

#N/A Error - Incompatible Units

CONVERT returns #N/A error when trying to convert between incompatible unit categories

=CONVERT(100, "m", "kg")

Solution: Ensure from_unit and to_unit are from the same category. You cannot convert distance to weight, temperature to volume, etc. Check that both units belong to the same measurement category (distance, weight, temperature, etc.).

#VALUE! Error - Invalid Unit Code

CONVERT returns #VALUE! error for invalid or misspelled unit codes

=CONVERT(100, meter, feet)

Solution: Unit codes are case-sensitive and must match Excel's exact codes. Common errors: "meter" instead of "m", "F" instead of "F" (correct), "lbs" instead of "lbm". Refer to Excel documentation for exact unit codes. Use quotes around unit codes.

Incorrect Conversion Results

CONVERT produces unexpected or incorrect conversion values

=CONVERT(100, "m", "ft")

Solution: Verify unit codes are correct and from the same category. Check for typographical errors in unit codes. For temperature, ensure you're using "C", "F", or "K" (not "c", "f", or "k"). For compound units, use proper notation: "^2" for squared, "^3" for cubed, "/" for division.

Unit Code Case Sensitivity

Confusion about uppercase vs lowercase in unit codes

=CONVERT(100, "M", "FT")

Solution: Most unit codes are lowercase (e.g., "m", "kg", "ft", "lbm"). Temperature codes use uppercase ("C", "F", "K"). Always use exact case as specified in Excel documentation. Test with a known conversion to verify codes.

Compound Units Not Working

Area or volume conversions with squared/cubed units failing

=CONVERT(100, "m2", "ft2")

Solution: For compound units, use proper notation: "m^2" for square meters, "ft^3" for cubic feet, "km/h" for kilometers per hour. Use caret (^) for exponents, forward slash (/) for division. No spaces in compound unit codes.

Performance Tips & Best Practices

⚡ Performance Optimization

  • CONVERT is computationally efficient, using simple lookup and multiplication operations
  • Avoid nesting multiple CONVERT functions when a direct conversion exists
  • Use cell references for unit codes in tables rather than hardcoding in formulas
  • For bulk conversions, consider using array formulas or helper columns

🎯 Best Practices

  • Always verify unit codes are correct and case-sensitive
  • Ensure from_unit and to_unit are from the same measurement category
  • Use quotes around unit codes in formulas
  • For compound units, use proper notation (^2, ^3, /)
  • Test conversions with known values to verify unit codes
  • Document unit codes used in your spreadsheets for team reference
  • Consider creating a unit conversion lookup table for frequently used conversions

📚 Common Unit Codes Reference

  • Distance: "m" (meter), "ft" (foot), "mi" (mile), "km" (kilometer), "in" (inch), "yd" (yard)
  • Weight: "kg" (kilogram), "lbm" (pound mass), "ozm" (ounce mass), "g" (gram)
  • Temperature: "C" (Celsius), "F" (Fahrenheit), "K" (Kelvin)
  • Volume: "l" (liter), "gal" (gallon), "qt" (quart), "pt" (pint), "cup" (cup)
  • Energy: "J" (joule), "BTU" (British Thermal Unit), "cal" (calorie), "eV" (electron volt)
  • Speed: "m/s" (meters per second), "km/h" (kilometers per hour), "mph" (miles per hour), "knot" (knot)