Create a Unit Converter in Google Sheets Using CONVERT

With the help of the CONVERT function, you can easily create a unit converter in Google Sheets. This function allows you to convert a numerical value from one unit of measure to another within the same category.

For example, you can use the following formula to convert 1 ton to kilograms, assuming the value 1 is in cell C2:

=CONVERT(C2, "ton", "kg") // returns 907.18474

Here, “ton” and “kg” are units in the “Weight” category.

Before we dive into the categories and units of measurement, let’s review the syntax of the function:

Syntax:

CONVERT(value, start_unit, end_unit)
  • value – The numeric value to convert.
  • start_unit – The current unit of the value.
  • end_unit – The unit to which you want to convert the value.

Refer to the tables below for the available categories and their units. After that, we’ll create a simple unit converter using the CONVERT function, three drop-down lists, and a FILTER formula for lookup.

Categories and Units for the CONVERT Function

Here are the available conversion units for the CONVERT function. Please remember to use both start and end units from the same category. You cannot select one unit from one category and another unit from a different category for conversion.

Category: Weight

unitdescription
uAtomic Mass Unit
grainGrain
gGram
ozmOunce Mass
lbmPound (Mass)
stoneStone
sgSlug
cwtHundredweight (US)
uk_cwtUK Hundredweight
tonTon (Metric)
uk_tonUK Ton (Imperial)
kgKilogram

Category: Distance

unitdescription
angAngstrom
PicaptPicapoint
picaPica (1/6 inch)
inInch
ftFoot
ydYard
mMeter
ellEll
miMile
survey_miU.S. Survey Mile
NmiNautical Mile
lyLight Year
parsecParsec

Category: Time

unitdescription
secSecond
minMinute
hrHour
dayDay
yrYear

Category: Pressure

unitdescription
PaPascal
mmHgMillimeter of Mercury
TorrTorr
psiPounds per Square Inch
atmAtmosphere

Category: Force

unitdescription
dynDyne
pondPond
NNewton
lbfPound-force

Category: Energy

unitdescription
eVElectron Volt
eErg
JJoule
flbFoot-Pound (or Foot-Pound Force)
cThermodynamic Calorie
calIT Calorie
BTUBritish Thermal Unit
WhWatt-Hour
HPhHorsepower-Hour

Category: Power

unitdescription
WWatt
PSPferdestärke (Metric Horsepower)
HPHorsepower

Category: Magnetism

unitdescription
gaGauss
TTesla

Category: Temperature

unitdescription
CCelsius
FFahrenheit
KKelvin
RankRankine
ReauRéaumur

Category: Volume

unitdescription
ang^3Cubic Angstrom
Picapt^3Cubic Picapoint
tspTeaspoon
tspmTeaspoon Metric
tbsTablespoon
in^3Cubic Inch
ozOunce (Fluid)
cupCup
ptPint
uk_ptUK Pint
qtQuart
lLiter
uk_qtUK Quart
galGallon
uk_galUK Gallon
ft^3Cubic Foot
bushelBushel
barrelBarrel
yd^3Cubic Yard
m^3Cubic Meter
MTONMeasurement Ton
GRTGross Register Ton
mi^3Cubic Mile
Nmi^3Cubic Nautical Mile
ly^3Cubic Light-Year

Category: Area

unitdescription
ang^2Square Angstrom
Picapt^2Square Picapoint
in^2Square Inch
ft^2Square Foot
yd^2Square Yard
m^2Square Meter
arAre
MorgenMorgen
uk_acreUK Acre
us_acreUS Acre
haHectare
mi^2Square Mile
Nmi^2Square Nautical Mile
ly^2Square Light Year

Category: Information

unitdescription
bitBinary Digit
byte8 Bits

Category: Speed

unitdescription
m/hrMeters per Hour
mphMiles per Hour
knKnots
admknAdmiralty Knots
m/sMeters per Second

Steps to Create a Unit Converter with the CONVERT Function

Enter categories in column A, units in column B, and unit descriptions in column C, where A1:C1 contains the field labels “Category,” “Unit,” and “Description.”

You can refer to the above tables to fill these columns, and it should look as follows:

Data Formatting for Unit Converter Using the CONVERT Function

Then follow these steps:

  1. Navigate to cell E1.
  2. Click Insert > Drop-down.
  3. In the sidebar panel, select “Drop-down (from a range)” under “Criteria.”
  4. Enter A2:A in the field below.
  5. Click Done.
    This will create a drop-down menu in cell E1 to select the categories.
  6. Enter the following formula in cell D1 to match the category selected in the drop-down and filter the units: =VSTACK("Helper", FILTER(B2:B, A2:A=E1))
  7. Navigate to cell E2.
  8. Click Insert > Drop-down.
  9. In the sidebar panel, select “Drop-down (from a range)” under “Criteria.”
  10. Enter D2:D in the field below.
  11. Click Done.
  12. Copy the drop-down in E2 to E3.
  13. Enter the following formula in cell G2: =IFERROR(CONVERT(SORTN(F2:F3), FILTER(E2:E3, F2:F3), FILTER(E2:E3, F2:F3="")))
  14. Enter the value to convert from one unit to another in either F2 or F3.

The above dynamic CONVERT formula will return the converted unit.

Example of a Unit Converter in Google Sheets

Formula Breakdown

In the above CONVERT formula, the arguments are as follows:

  • value: SORTN(F2:F3) // returns the value to convert from the range F2:F3.
  • start_unit: FILTER(E2:E3, F2:F3) // returns the start unit by filtering E2:E3 for non-empty cells in F2:F3.
  • end_unit: FILTER(E2:E3, F2:F3="") // returns the end unit by filtering E2:E3 for empty cells in F2:F3.

Get Unit Converter Sheet

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Compare Two Tables for Differences in Excel

To compare two tables with similar data for differences, you can use the XLOOKUP...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

More like this

Highlight Upcoming Birthdays in Google Sheets

When highlighting upcoming birthdays in Google Sheets, one important aspect is ignoring the year...

Calculate Weighted Average in Pivot Table in Google Sheets

You can calculate a weighted average in a Pivot Table using a custom formula...

Summarize Data and Keep the Last Record in Google Sheets

In Google Sheets, we can summarize data (like sum, average, min, max, count) using...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.