CONVERT function

Converts a value from one unit of measurement to the corresponding value in another unit of measurement. Enter the units of measurement directly as text in quotation marks or as a reference. The units of measurement specified through the arguments must match the supported unit symbols, which are case-sensitive. For example, the symbol for the unit "newton" is the uppercase "N".

The measurement units recognized by CONVERT fall into 13 groups, which are listed below. CONVERT will perform conversions between any two units within one group but reject any request to convert between units in different groups.

You can also add binary and decimal prefixes to units of measurement that support them. The list of all prefixes and their corresponding multipliers are shown below.

warning

This function may not be compatible with other spreadsheet software.


Syntax

CONVERT(Number; FromUnit; ToUnit)

Number is the number to be converted.

FromUnit is the unit from which conversion is taking place.

ToUnit is the unit to which conversion is taking place. Both units must be of the same type.

warning

If FromUnit and ToUnit are not valid units from the same group, then CONVERT reports an invalid argument error (Err:502).


Examples

=CONVERT(-10; "C"; "F")

Here the function converts -10 degrees Celsius to degrees Fahrenheit, returning the value 14. There is not a simple multiplicative relationship between temperature units, as different reference points are used. Hence, as in this case, an input negative number may be converted to a positive value.

=CONVERT(3.5; "mi"; "yd")

Here the function converts 3.5 international miles to yards, returning the value 6160. Both units are in the Length and distance group.

=CONVERT(256; "Gibit"; "Mibyte")

Here the function converts 256 gigibits to mebibytes, returning the value 32768. Both units (bit and byte) are in the Information group and support binary prefixes.

=CONVERT(1; "dyn"; "e")

Here the function returns an invalid argument error (Err:502) because the two units (dyne and erg) are in different groups (Force and Energy respectively).

Units of measurement

Below are the unit measurement groups supported by the CONVERT function. Be aware that conversions can only happen between units that belong to the same group.

note

The column Prefix indicates whether or not a given unit of measurement supports prefixes.


เบžเบทเป‰เบ™เบ—เบตเปˆ

note

Some measurement units have more than one accepted symbol. The accepted unit symbols are separated by semicolons in the Unit symbol column.


Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"ang2" ; "ang^2"

Square angstrom

เปเบกเปˆเบ™

"ar"

Are

เปเบกเปˆเบ™

"ft2" ; "ft^2"

Square foot

เบšเปเปˆ

"ha"

Hectare

เบšเปเปˆ

"in2" ; "in^2"

Square inch

เบšเปเปˆ

"ly2" ; "ly^2"

Square light-year

เบšเปเปˆ

"m2" ; "m^2"

Square meter

เปเบกเปˆเบ™

"mi2" ; "mi^2"

Square international mile

เบšเปเปˆ

"Morgen"

Morgen

เบšเปเปˆ

"Nmi2" ; "Nmi^2"

Square nautical mile

เบšเปเปˆ

"Pica2" ; "Pica^2" ; "picapt2" ; "picapt^2"

Square pica point

เบšเปเปˆ

"pica2" ; "pica^2"

Square pica

เบšเปเปˆ

"uk_acre" ; "acre"

International acre

เบšเปเปˆ

"us_acre"

US survey acre

เบšเปเปˆ

"yd2" ; "yd^2"

Square yard

เบšเปเปˆ


Energy

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"BTU" ; "btu"

British thermal unit

เบšเปเปˆ

"c"

Thermochemical calorie

เปเบกเปˆเบ™

"cal"

International Steam Table calorie

เปเบกเปˆเบ™

"e"

erg

เปเบกเปˆเบ™

"eV" ; "ev"

Electron volt

เปเบกเปˆเบ™

"flb"

Foot-pound

เบšเปเปˆ

"HPh" ; "hh"

Horsepower-hour

เบšเปเปˆ

"J"

Joule

เปเบกเปˆเบ™

"Wh" ; "wh"

Watt-hour

เปเบกเปˆเบ™


Flux density

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"ga"

Gauss

เปเบกเปˆเบ™

"T"

Tesla

เปเบกเปˆเบ™


Force

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"dyn" ; "dy"

Dyne

เปเบกเปˆเบ™

"N"

Newton

เปเบกเปˆเบ™

"lbf"

Pound-force

เบšเปเปˆ

"pond"

Pond

เปเบกเปˆเบ™


เบ‚เปเป‰เบกเบนเบ™

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"bit"

Bit

เปเบกเปˆเบ™

"byte"

Byte

เปเบกเปˆเบ™


Length and distance

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"ang"

Angstrom

เปเบกเปˆเบ™

"ell"

Ell

เบšเปเปˆ

"ft"

เบŸเบธเบ”

เบšเปเปˆ

"in"

เบ™เบตเป‰เบง

เบšเปเปˆ

"ly" ; "lightyear"

Light-year

เปเบกเปˆเบ™

"m"

เปเบกเบฑเบ”

เปเบกเปˆเบ™

"mi"

International mile

เบšเปเปˆ

"Nmi"

Nautical mile

เบšเปเปˆ

"parsec" ; "pc"

Parsec

เปเบกเปˆเบ™

"Pica" ; "picapt"

Pica point

เบšเปเปˆ

"pica"

เบ›เบดเบเบฒ

เบšเปเปˆ

"survey_mi"

US survey mile

เบšเปเปˆ

"yd"

Yard

เบšเปเปˆ


Mass and weight

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"cwt" ; "shweight"

Short hundredweight

เบšเปเปˆ

"g"

Gram

เปเบกเปˆเบ™

"grain"

Grain

เบšเปเปˆ

"lbm"

Pound

เบšเปเปˆ

"ozm"

Ounce

เบšเปเปˆ

"pweight"

Pennyweight

เบšเปเปˆ

"sg"

Slug

เบšเปเปˆ

"stone"

Stone

เบšเปเปˆ

"ton"

Short ton

เบšเปเปˆ

"u"

Unified atomic mass unit

เปเบกเปˆเบ™

"uk_cwt" ; "lcwt" ; "hweight"

Long hundredweight

เบšเปเปˆ

"uk_ton" ; "LTON" ; "brton"

Long ton

เบšเปเปˆ


เบเบณเบฅเบฑเบ‡

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"HP" ; "h"

Mechanical horsepower

เบšเปเปˆ

"PS"

Pferdestรคrke or metric horsepower

เบšเปเปˆ

"W" ; "w"

Watt

เปเบกเปˆเบ™


Pressure

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"atm" ; ("at")(1)

Standard atmosphere

เปเบกเปˆเบ™

"mmHg"

Millimeter of mercury

เปเบกเปˆเบ™

"Pa"

Pascal

เปเบกเปˆเบ™

"psi"

Pound per square inch

เบšเปเปˆ

"Torr"

Torr

เบšเปเปˆ


warning

1 - The "at" unit is deprecated. Use "atm" instead.


Speed

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"admkn"

Admiralty knot

เบšเปเปˆ

"kn"

International knot

เบšเปเปˆ

"m/h" ; "m/hr"

Meters per hour

เปเบกเปˆเบ™

"m/s" ; "m/sec"

Meters per second

เปเบกเปˆเบ™

"mph"

Miles per hour

เบšเปเปˆ


Temperature

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"C" ; "cel"

Degree Celsius

เบšเปเปˆ

"F" ; "fah"

Degree Fahrenheit

เบšเปเปˆ

"K" ; "kel"

Kelvin

เปเบกเปˆเบ™

"Rank"

Degree Rankine

เบšเปเปˆ

"Reau"

Degree Rรฉaumur

เบšเปเปˆ


เป€เบงเบฅเบฒ

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"day" ; "d"

เบงเบฑเบ™

เบšเปเปˆ

"hr"

เบŠเบปเปˆเบงเป‚เบกเบ‡

เบšเปเปˆ

"mn" ; "min"

เบ™เบฒเบ—เบต

เบšเปเปˆ

"sec" ; "s"

เบงเบดเบ™เบฒเบ—เบต

เปเบกเปˆเบ™

"yr"

เบ›เบต

เบšเปเปˆ


เบ›เบฐเบฅเบดเบกเบฒเบ™

Unit symbol

เบฅเบฒเบเบฅเบฐเบญเบฝเบ”

เบ„เบณเบ™เบณเปœเป‰เบฒ

"ang3" ; "ang^3"

Cubic angstrom

เปเบกเปˆเบ™

"barrel"

Oil barrel

เบšเปเปˆ

"bushel"

US bushel

เบšเปเปˆ

"cup"

US cup

เบšเปเปˆ

"ft3" ; "ft^3"

Cubic foot

เบšเปเปˆ

"gal"

US gallon

เบšเปเปˆ

"Glass"(2)

Australian glass (200 milliliters)

เบšเปเปˆ

"GRT" ; "regton"

Gross register tonnage

เบšเปเปˆ

"Humpen"(2)

Humpen (500 milliliters)

เบšเปเปˆ

"in3" ; "in^3"

Cubic inch

เบšเปเปˆ

"l" ; "L" ; "lt"

Liter

เปเบกเปˆเบ™

"ly3" ; "ly^3"

Cubic light-year

เบšเปเปˆ

"m3" ; "m^3"

Cubic meter

เปเบกเปˆเบ™

"mi3" ; "mi^3"

Cubic international mile

เบšเปเปˆ

"Middy"(2)

Australian middy (285 milliliters)

เบšเปเปˆ

"MTON"

Measurement ton

เบšเปเปˆ

"Nmi3" ; "Nmi^3"

Cubic nautical mile

เบšเปเปˆ

"oz"

US fluid ounce

เบšเปเปˆ

"Pica3" ; "Pica^3" ; "picapt3" ; "picapt^3"

Cubic pica point

เบšเปเปˆ

"pica3" ; "pica^3"

Cubic pica

เบšเปเปˆ

"pt" ; "us_pt"

US pint

เบšเปเปˆ

"qt"

US quart

เบšเปเปˆ

"Schooner"(2)

Australian schooner (425 milliliters)

เบšเปเปˆ

"Sixpack"(2)

Six pack (2 liters)

เบšเปเปˆ

"tbs"

US tablespoon

เบšเปเปˆ

"tsp"

US teaspoon

เบšเปเปˆ

"tspm"

Metric teaspoon

เบšเปเปˆ

"uk_gal"

Imperial gallon

เบšเปเปˆ

"uk_pt"

Imperial pint

เบšเปเปˆ

"uk_qt"

Imperial quart

เบšเปเปˆ

"yd3" ; "yd^3"

Cubic yard

เบšเปเปˆ


note

2 - These units are not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard for the CONVERT function. They are preserved for backward compatibility.


Prefixes

Decimal prefixes

เบ„เบณเบ™เบณเปœเป‰เบฒ

Multiplier

Y (yotta)

1024

Z (zetta)

1021

E (exa)

1018

P (peta)

1015

T (tera)

1012

G (giga)

109

M (mega)

106

k (kilo)

103

h (hecto)

102

e (deca)

101

d (deci)

10-1

c (centi)

10-2

m (milli)

10-3

u (micro)

10-6

n (nano)

10-9

p (pico)

10-12

f (femto)

10-15

a (atto)

10-18

z (zepto)

10-21

y (yocto)

10-24


Binary prefixes

เบ„เบณเบ™เบณเปœเป‰เบฒ

Multiplier

Yi (yobi)

280

Zi (zebi)

270

Ei (exbi)

260

Pi (pebi)

250

Ti (tebi)

240

Gi (gibi)

230

Mi (mebi)

220

ki (kibi)

210


Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.CONVERT

Please support us!