3 Ways to Use Microsoft Excel's Convert Function

Table of contents:

3 Ways to Use Microsoft Excel's Convert Function
3 Ways to Use Microsoft Excel's Convert Function
Anonim

The Excel "Convert" function (whose name is "Convert ()") allows you to convert a value expressed with a certain unit of measurement into another. In order to use the function in question, it is necessary to provide the value to convert and the units of measurement involved, then insert them in the following formula: "= Convert (num," from_measure "," to_measure "). Start by learning how to insert manually the formula using the "Convert" function within a worksheet or using the "Formula Builder" function, and then find out how to copy the formula to all the cells of the data range to be converted. abbreviations of the units of measure of the "Convert" function are case-sensitive, ie they take into account the difference between upper and lower case.

Steps

Method 1 of 3: Manually Enter the Conversion Formula

Convert Measurements Easily to Microsoft Excel Step 1
Convert Measurements Easily to Microsoft Excel Step 1

Step 1. Enter the original unit of measurement as the header of column A

For this example article, assume that you want to convert the data entered into column A of the sheet and insert the result into column B (however, the formula works even if any other pair of columns are used). Click on cell "A1" to insert the header of column A and type the name of the original unit of measurement in which the values to be converted are expressed (for example inches, meters, yards). The unit of measure chosen will also be the one that will be inserted in the "Convert" function as the "from_measure" parameter (the original unit of measure).

  • For example, click on cell "A1" and type the title "Inches". Suppose you want to convert 12 inches to meters. The value "12" represents the "num" parameter of the formula, the "inch" unit of measure represents the "from_units" parameter, while the "meters" represent the "a_units" parameter of the "Convert" function.
  • The Excel "Convert" function will convert the entered value from the original unit of measurement to the target unit.
  • Inserting column headers will help you organize your data better by making it more readable.
Convert Measurements Easily to Microsoft Excel Step 2
Convert Measurements Easily to Microsoft Excel Step 2

Step 2. Enter the header of column B

Click on cell "B1". The values calculated by the "Convert" function and referred to the target unit of measure will be entered in this column. Type the name of the unit of measure to which the original values will be converted. This is the "a_unit" parameter of the "Convert" function.

For example, click on cell "B1" and enter the title "Meters"

Convert Measurements Easily to Microsoft Excel Step 3
Convert Measurements Easily to Microsoft Excel Step 3

Step 3. Enter the values to convert starting from cell "A2"

Inside the other cells of column A, enter only the numeric values you want to convert, without adding the units of measurement.

For example, in cell "A2" type the value "12" (which, in this case, represents a value in inches)

Convert Measurements Easily to Microsoft Excel Step 4
Convert Measurements Easily to Microsoft Excel Step 4

Step 4. Type the code "= Convert (" into cell "B2"

In Excel, function names are not case-sensitive, i.e. they do not distinguish between uppercase and lowercase characters. For this reason, typing the code "= CONVERT (" is equivalent to entering the code "= convert ("

Convert Measurements Easily to Microsoft Excel Step 5
Convert Measurements Easily to Microsoft Excel Step 5

Step 5. Enter the address of the cell which contains the numeric value to convert

Within the "Convert" function, this parameter is called "num".

  • For example, "= Convert (A2".
  • If you need to convert a single measurement as in the previous example, you can also enter the numeric value to be processed directly into the formula (and not the address of the cell that contains it). For example, instead of using the formula "= Convert (A2", you can use the code "= Convert (12".
Convert Measurements Easily to Microsoft Excel Step 6
Convert Measurements Easily to Microsoft Excel Step 6

Step 6. Add a comma to separate the formula parameters

Continuing with the previous example, the formula code should now look like this: "= Convert (A2," or "= Convert (12,"

Convert Measurements Easily to Microsoft Excel Step 7
Convert Measurements Easily to Microsoft Excel Step 7

Step 7. Enter the "from_measure" parameter

Now you have to indicate the abbreviation of the unit of measurement in which the value you want to convert is currently expressed. The value of the "from_measure" parameter must be enclosed in quotation marks and followed by a comma.

  • For example: "= Convert (A2," to "," or "= Convert (12," to ",".
  • Below you will find some of the abbreviations you will need to use to indicate the units of measurement from which to start the conversion "in", "cm", "ft" and "m".
  • On this page of the Microsoft Excel support website is published the complete list of all the measurement units supported by the "Convert" function and the corresponding abbreviations.
Convert Measurements Easily to Microsoft Excel Step 8
Convert Measurements Easily to Microsoft Excel Step 8

Step 8. Enter the target unit of measure, ie the "to_measure" parameter

Now you must indicate the abbreviation of the unit of measurement into which the indicated value must be converted. Also in this case the abbreviation of the destination unit of measure must be enclosed in quotation marks and followed by a closing round parenthesis.

  • Continuing with the previous example, at this point the complete formula should be similar to the following: "= Convert (A2," into "," m ")" or "= Convert (12," into "," m ") ".
  • The example formula converts the value in cell "A2" from inches to meters.
Convert Measurements Easily in Microsoft Excel Step 9
Convert Measurements Easily in Microsoft Excel Step 9

Step 9. Press the Enter key to save and run the formula

The converted value will be displayed in cell "B2", the one where the formula has been entered.

  • Continuing with the previous example, the value "0, 3" will be displayed in cell B2.
  • If the error code "# N / A" appears in the cell where you entered the formula, check that you have used the correct abbreviations to represent the units of measure. Make sure that the abbreviations of the units of measure are correct and belong to the same group (for example, it is not possible to convert a mass to a distance). Also remember that the abbreviations and prefixes of the units of measurement I'm case-sensitive (so there is a difference between uppercase and lowercase characters).
  • If the error code "#VALUE!" Appears inside the cell where you entered the formula, it means that the value of the "num" parameter (the number to convert) is incorrect. Make sure you have entered a single numeric value or a single cell address.

Method 2 of 3: Create the Conversion Formula Using the Formula Builder

Convert Measurements Easily to Microsoft Excel Step 10
Convert Measurements Easily to Microsoft Excel Step 10

Step 1. Enter the original unit of measurement as the header of column A

For this example article, assume that you want to convert the data entered into column A of the sheet and insert the result into column B (however the formula works even if any other pair of columns are used). Click on cell "A1" to insert the header of column A and type the name of the original unit of measurement in which the values to be converted are expressed (for example seconds, hours or days). The unit of measurement chosen will also be the one that will be entered in the "Convert" function as the "from_measure" parameter (the original unit of measurement).

  • For example, type the title "Minutes" into cell "A1". Suppose you want to convert 21 minutes to seconds. The value "21" represents the "num" parameter of the formula, the "minutes" unit of measure represents the "from_units" parameter, while the "seconds" represent the "a_units" parameter of the "Convert" function.
  • The Excel "Convert" function will convert the entered value from the original unit of measurement to the target unit.
  • Inserting column headers will help you organize your data better, making it more readable.
Convert Measurements Easily to Microsoft Excel Step 11
Convert Measurements Easily to Microsoft Excel Step 11

Step 2. Enter the header of column B

Click on cell "B1". The values calculated by the "Convert" function and referred to the target unit of measure will be entered in this column. Type the name of the unit of measure to which the original values will be converted. This is the "a_unit" parameter of the "Convert" function. Enter the name of the target unit of measure (for example seconds or days).

For example click on cell "B1" and enter the title "Seconds"

Convert Measurements Easily to Microsoft Excel Step 12
Convert Measurements Easily to Microsoft Excel Step 12

Step 3. Enter the values to convert starting from cell "A2"

Inside the other cells of column A, enter only the numeric values you want to convert without adding the units of measure.

For example, in cell "A2" type the value "21" (which in this case represents the number of minutes to convert into seconds)

Convert Measurements Easily to Microsoft Excel Step 13
Convert Measurements Easily to Microsoft Excel Step 13

Step 4. Open the "Formula Builder" window

In this case, instead of manually inserting the formula code using the "Convert" function, you will use the Excel "Formula Builder" which will guide you in creating the text string to insert in the sheet cell. Proceed as follows:

  • Select the "Formulas" tab of the Excel ribbon;
  • Click on the "Formula Builder" button;
  • Select cell "B2";
  • Select the "Convert" formula.
Convert Measurements Easily to Microsoft Excel Step 14
Convert Measurements Easily to Microsoft Excel Step 14

Step 5. Enter the cell name (consisting of the corresponding column letter and row numbers) that contains the value to be converted

Type it in the "Num" text field. This is the "num" parameter of the "Convert" function.

  • Continuing with the previous example, enter the value "A2".
  • If you need to perform a single conversion like in the example of this article, you can directly enter the numeric value to convert (in this case "21") instead of the cell name.
Convert Measurements Easily in Microsoft Excel Step 15
Convert Measurements Easily in Microsoft Excel Step 15

Step 6. Enter the initials of the original unit of measurement in the "From_unit" text field

Type the Excel abbreviation corresponding to the original unit of measurement.

  • For example, enter "mn" or "min" to indicate minutes.
  • On this page of the Microsoft Excel support website is published the complete list of all the measurement units supported by the "Convert" function and the corresponding abbreviations.
Convert Measurements Easily to Microsoft Excel Step 16
Convert Measurements Easily to Microsoft Excel Step 16

Step 7. Enter the "A_unit" parameter

Type the Excel abbreviation of the target unit of measure into the "A_unit" text field.

Continuing with the previous example, type the abbreviation "sec" or "s" to indicate the seconds

Convert Measurements Easily to Microsoft Excel Step 17
Convert Measurements Easily to Microsoft Excel Step 17

Step 8. Press the Enter key to save and run the formula

The converted value will be displayed in cell "B2", the one where the formula has been entered.

  • In this case, inside cell "B2" you will see the value "1.260" (ie 1.260 seconds) appear.
  • If the error code "# N / A" appears in the cell where you entered the formula, check that you have used the correct abbreviations to represent the units of measure. Make sure that the abbreviations of the units of measure are correct and belong to the same group (for example it is not possible to convert a time into a distance). Also remember that the abbreviations and prefixes of the units of measurement I'm case-sensitive, so there is a difference between uppercase and lowercase.
  • If the error code "#VALUE!" Appears inside the cell where you entered the formula, it means that the value of the "num" parameter (the number to convert) is incorrect. Make sure you have entered a single numeric value or a single cell address.

Method 3 of 3: Apply the Multi-Cell Conversion Formula

Convert Measurements Easily to Microsoft Excel Step 18
Convert Measurements Easily to Microsoft Excel Step 18

Step 1. Select cell "B2" (the one where you entered the original formula using the "Convert" function)

For example, assume that you have entered additional values in cells "A3" and "A4" in addition to the original value stored in cell "A2". At this point, you have already performed the conversion of the value present in cell "A2" thanks to the formula present in cell "B2". Now, you can quickly and easily convert the values in cells "A3" and "A4" (or all those you entered in column A) simply by copying the conversion formula into the other cells of column B.

  • For example, assume that you entered the value "1" in cell "A2", the value "5" in cell "A3" and the value "10" in cell "A4" and that the formula you typed in cell "B2 "is the following:" = Convert (A2, "into", "cm") ".
  • When you need to convert multiple values, you must enter the name of the cell containing the number to be converted as the "num" parameter in the conversion formula.
Convert Measurements Easily to Microsoft Excel Step 19
Convert Measurements Easily to Microsoft Excel Step 19

Step 2. Click on the small gray square in the lower right corner of the cell without releasing the mouse button

When a cell is selected, the borders are shown in bold and a small square is visible in the lower right corner.

Convert Measurements Easily to Microsoft Excel Step 20
Convert Measurements Easily to Microsoft Excel Step 20

Step 3. Drag the mouse cursor down along column B to select the other cells

You will need to select only the cells in column B that correspond to those in column A that contain the values to be converted.

  • Referring to the previous example, you will only need to select cells "B3" and "B4", as the remaining values to be converted are stored in cells "A3" and "A4".
  • Alternatively, you can apply the conversion formula to multiple cells using Excel's "Fill" feature. After selecting cell "B2", hold down the ⇧ Shift key while selecting the other cells in column B. In this case, you need to select all the cells in column B that correspond to those in column A which contain the values to be convert. Click on the "Home" tab of the Excel ribbon. Select the "Fill" item and choose the "Bottom" option. The converted values will appear within the selected cells of column B.
Convert Measurements Easily to Microsoft Excel Step 21
Convert Measurements Easily to Microsoft Excel Step 21

Step 4. After selecting all the cells you need, release the left mouse button

The conversion formula you entered in cell "B2" will also be automatically applied to the other cells in column B with all references to the data in the sheet updated. The converted values of the measurements entered in column A will be displayed within column B.

  • Continuing with the previous example, in cell "B2" you will see the value "2, 54", in cell "B3" the value "12, 7" and in cell "B4" the value "25, 4".
  • If the error code "# N / A" appears in one of the cells where you entered the formula, check that you have used the correct abbreviations to represent the units of measure. Make sure that the abbreviations of the units of measure are correct and belong to the same group (for example, it is not possible to convert a weight into a distance). Also remember that the abbreviations and prefixes of the units of measurement I'm case-sensitive, so there is a difference between uppercase and lowercase.
  • If the error code "#VALUE!" Appears in one of the cells where you entered the formula, it means that the value of the "num" parameter (the number to convert) is incorrect. Make sure you have entered a single numeric value or a single cell address.

Advice

In some older versions of Excel, the "Convert" feature is not installed by default, so you have to manually add it to the program. It is included in the additional package of features called "Analysis Tools". To install it, select the "Tools" menu and choose "Add-ons", then select the check button next to the "Analysis tools" option. You may need to insert the Microsoft Office installation CD

Warnings

The abbreviations and prefixes of the units of measurement I'm case-sensitive, so be careful how you put them in your formulas.

Recommended: