How to Convert Units in Excel – 3 Methods

Method 1 – Using the CONVERT Function to Convert Units in Excel

1.1. Converting Units in a Single Cell

Convert the Temperature from Celsius to Fahrenheit:

Using CONVERT Function in Single Cell

Step 1: Choose a Cell to Enter the Command

  • Select the D5.

Using CONVERT Function How to Convert Units in Excel

  • Enter the formula:

CONVERT(C5, “C”, “F”)

C5 is the Temperature (Celsius), “C” and “F” are the short form of Celsius (from_unit argument) and Fahrenheit (to_unit argument).

Using CONVERT Function How to Convert Units in Excel

Step 2: Get the Results

  • Press ENTER.

The temperature is converted to Fahrenheit.

Using CONVERT Function in Single Cell


1.2. Converting Units in Multiple Cells

 

Using CONVERT Function in Multiple Cells

Step 1: Enter the Command

  • Select D5.
  • Enter the formula:
CONVERT(C5, “C”, “F”)

Using CONVERT Function in Multiple Cells

Step 2: Display the Results

  • Press ENTER.
  • Drag down the Fill Handle to see the result in the rest of the cells.

Using CONVERT Function in Multiple Cells - How to Convert Units in Excel

This is the output.

Using CONVERT Function in Multiple Cells How to Convert Units in Excel

Consider the dataset below:

Dataset 2

  • Use the CONVERT function to convert the Distance from kilometers to miles:

Convert Function

Step 1: Enter the Arguments

  • Select D5 and enter: CONVERT.
  • Enter the formula:

CONVERT(D5, “km”, “mi”)

D5 refers to Distance (Kilometers), “km” and “mi” are the short form of Kilometer (from_unit argument) and Mile (to_unit argument).

Convert Function - How to Convert Units in Excel

Step 2: Show the Results

  • Press ENTER.

This is the output.

Convert Function - How to Convert Units in Excel

  • Drag down the Fill Handle to see the result in the rest of the cells.

Convert Function - How to Convert Units in Excel

 


Method 2 – Preparing a Conversion Matrix to Convert Units 

This is the sample dataset.

Dataset 3

Steps:

  • Enter a numerical value in C15. Here, 100.

Conversion Matrix - How to Convert Units in Excel

 

Excel automatically generates a table showcasing the equivalent of 100 teaspoons in different units.

Conversion Matrix - How to Convert Units in Excel

Read More: Convert Cubic Feet to Cubic Meters in Excel


Method 3 – Applying VBA Code to Convert Units in Excel

Step 1: Open Visual Basic

  • Go to the Developer tab.
  • Select Visual Basic.

Conversion With VBA

Step 2 – Open a Module and Run the Code

  • Go to Insert and click Module.

Conversion With VBA - How to Convert Units in Excel

 

Sub Convert_VBA()
    Dim k As Integer
    For k = 5 To 14
        Cells(k, 4).Value = Application.WorksheetFunction.Convert(Cells(k, 3).Value, "C", "F")
    Next k
End Sub
  • Copy the code into the window.

Conversion With VBA - How to Convert Units in Excel

  • Click Run and close the window.

Conversion With VBA - How to Convert Units in Excel

  • Go back to the spreadsheet.

This is the output.

Conversion With VBA - How to Convert Units in Excel


Things to Remember

  • The Excel CONVERT function is case-sensitive.
  • It displays the #N/A error if the units are inconsistent.

Incorrect Data Type

  • It displays the #NAME? error if it is unable to recognize the text string.

Incorrect Data Type


Download Practice Workbook


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Eshrak Kader
Eshrak Kader

Eshrak Kader is a dedicated professional with a BSc. Degree in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology. He boasts a rich background in Microsoft Office Suite, and over the past year, he has authored over 120 insightful articles for the ExcelDemy. Currently, Eshrak leads a team of 5 in the ExcelDemy Video project and enjoys problem-solving and making videos on Excel. Eshrak’s passion for continuous learning underscores his commitment to excellence in... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo