HomeGoogle DocsSpreadsheetHow to Make a Google Sheets Unit Converter (With Free Template)

How to Make a Google Sheets Unit Converter (With Free Template)

Want to build a completely custom, dynamic unit converter in Google Sheets? Whether you need to convert metrics for weight, distance, temperature, or volume, the native CONVERT function makes it incredibly easy.

Instead of hardcoding individual conversion formulas, this guide will show you how to make a unit converter in google sheets using dynamic drop-down lists.

This tutorial offers a free downloadable unit calculator template, helping you master the CONVERT function and build your own custom calculator from scratch.

Preview and Download

How to Use the Unit Converter Template

Using the automated unit converter is simple and intuitive. Follow these quick steps to perform any conversion instantly:

  1. Select a Category: Choose one of the 13 available measurement categories from the drop-down menu in cell E1 (such as Weight, Distance, Temperature, or Volume).
  2. Choose Your Units: Select your starting unit code in cell E2 (“Convert From”) and your target unit code in cell E3 (“Convert To”).
  3. Enter Your Value: Type the number you want to convert into cell F2 (or F3). The template will automatically calculate the result and display it cleanly in cell G2.
Animated GIF demonstrating how to use the Google Sheets unit converter template to calculate conversions

Bonus Feature: If you are unsure what a specific shortcode means (like “lbm” or “Pa”), you will find a dynamic abbreviation lookup table built into the template directly below the converter to show you the full unit descriptions instantly.

Now that you know how to use the tool, let’s pull back the curtain to understand how the native CONVERT function works under the hood, and how you can build this dynamic calculator yourself.

How to Use the CONVERT Function in Google Sheets

The core of the unit converter is the native CONVERT function. It is straightforward to use once you understand its layout.

Syntax:

=CONVERT(value, start_unit, end_unit)
  • value – The numeric value you want to convert (this can be a raw number or a cell reference).
  • start_unit – The current measurement unit of your starting value. This must be wrapped in quotation marks if entered directly into the formula (e.g., “ton”).
  • end_unit – The target measurement unit you want to convert to (e.g., “kg”).

Example:

=CONVERT(1000, "kg", "ton")

Crucial Rule: Your start_unit and end_unit must belong to the exact same measurement category. For example, you cannot use CONVERT to cross-reference a unit from the “Weight” category with a unit from the “Distance” category. Doing so will result in an #N/A error with the message: “Error: Invalid units for conversion.”

In our dynamic unit converter template, we automate this process using cell references instead of hardcoded unit names. The formula dynamically reads the category selected via the drop-down menu in cell E1. It then looks at the corresponding starting and target units chosen in cells E2 and E3, which are populated using dependent drop-downs to prevent errors. Finally, it pulls the raw value to convert straight from cell F2 or F3 depending on which field you enter your data into.

Categories and Units for the CONVERT Function

Here are the available conversion units for the CONVERT function.

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

Distance

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

Time

unitdescription
secSecond
minMinute
hrHour
dayDay
yrYear

Pressure

unitdescription
PaPascal
mmHgMillimeter of Mercury
TorrTorr
psiPounds per Square Inch
atmAtmosphere

Force

unitdescription
dynDyne
pondPond
NNewton
lbfPound-force

Energy

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

Power

unitdescription
WWatt
PSPferdestärke (Metric Horsepower)
HPHorsepower

Magnetism

unitdescription
gaGauss
TTesla

Temperature

unitdescription
CCelsius
FFahrenheit
KKelvin
RankRankine
ReauRéaumur

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

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

Information

unitdescription
bitBinary Digit
byte8 Bits

Speed

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

Steps to Make a Unit Converter in Google Sheets

Follow these step-by-step instructions to build the fully automated unit converter from scratch.

Phase 1: Setting Up the Database

First, create your master reference list in columns A, B, and C. Label cells A1:C1 as “Category”, “Unit”, and “Description”. You can use the comprehensive unit tables provided above to populate rows 2 and downward.

Spreadsheet screenshot showing the data formatting for columns A to C with Category, Unit, and Description headers for the unit converter

Phase 2: Building the Dependent Drop-Down Menus

Next, follow these steps to create your interactive menus:

  1. Select cell E1 (this will be your Category selector).
  2. Click Insert > Drop-down to open the Data Validation sidebar.
  3. In the Criteria menu, select “Drop-down (from a range)”.
  4. Enter A2:A in the range field and click Done.
  5. Navigate to cell D1 and enter the following VSTACK and FILTER formula to build a dynamic helper column:
    =VSTACK("Helper", FILTER(B2:B, A2:A=E1))
  6. Select cell E2 (your “From Unit” selector).
  7. Click Insert > Drop-down, choose “Drop-down (from a range)”, and enter D2:D as the range. Click Done.
  8. Copy cell E2 and paste it into cell E3 to create your “To Unit” selector.

Phase 3: Adding the Multi-Directional Conversion Formula

To make the converter incredibly flexible, we want it to work regardless of whether you type your number into cell F2 or cell F3. If you type a value in F2, it converts from the unit in E2 to E3. If you type a value in F3, it reverses and converts from E3 to E2.

  1. Navigate to cell G2.
  2. Paste the following master formula:
    =IFERROR(CONVERT(SORTN(F2:F3), FILTER(E2:E3, F2:F3), FILTER(E2:E3, F2:F3="")))

Now, simply enter the number you want to convert into either cell F2 or F3, and cell G2 will instantly output the mathematically precise result.

Phase 4: Adding Dynamic Unit Description Lookups (Optional)

To make the converter user-friendly, we can display the full name of the selected unit abbreviations (like changing “lbm” to “Pound (Mass)”).

  1. Navigate to cell F7 and enter this formula to display the full “From Unit” description:
    =IFNA(E2&" ("&XLOOKUP(E2, B2:B, C2:C)&")")
  2. Navigate to cell F8 and enter this formula to display the full “To Unit” description:
    =IFNA(E3&" ("&XLOOKUP(E3, B2:B, C2:C)&")")

Formula Breakdown: How the Array Logic Works

The master formula uses advanced array filtering to dynamically swap the arguments inside the CONVERT function based on where you enter your data. Here is exactly how it satisfies the three required arguments:

  • value: SORTN(F2:F3) This looks at the range F2:F3 and isolates whichever cell contains your raw number, passing it directly to the function.
  • start_unit: FILTER(E2:E3, F2:F3) This filters your unit selections in E2:E3 and returns the starting unit code associated with the cell where you actively typed a number.
  • end_unit: FILTER(E2:E3, F2:F3="") This filters E2:E3 for the empty input cell, identifying it as your target destination and pulling the correct target unit code.

Wrapping the entire string in IFERROR ensures that your spreadsheet displays a clean blank cell or custom text instead of throwing a generic error when the input cells are empty.

Unit Descriptions: XLOOKUP and IFNA

The lookup formulas in F7 and F8 combine text joining (&) with XLOOKUP to scan your master database in columns B and C. It matches the short code from your drop-down (E2 or E3) and pairs it with its full description.

Wrapping the formula in IFNA prevents the sheet from displaying ugly #N/A errors when the unit drop-downs are left blank, keeping your calculator template looking professional and clean.

Resources

Prashanth K V
Prashanth K V
Your Trusted Google Sheets and Excel Expert Prashanth K V is a Diamond Product Expert in Google Sheets, officially recognized by Google for his contributions to the Docs Editors Help Community and featured in the Google Product Experts Directory. Explore his blog to learn advanced formulas, automation tips, and problem-solving techniques to elevate your spreadsheet skills.

Top Discussions

More like this

How to Build a Road Trip Fuel Cost Splitter Formula in Google Sheets

Need a fair formula to split fuel costs among travelers on a long road...

Road Trip Fuel Cost Splitter in Google Sheets (Free Template)

When you go on a long road trip with friends, splitting fuel expenses fairly...

Savings Tracker Template in Google Sheets (Free Download)

Managing multiple savings goals can become difficult without a proper system to track your...

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.