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.


Süntaks

CONVERT(Number; FromUnit; ToUnit)

Arv on teisendatav arvväärtus.

Lähteühik on ühik, millest teisendatakse.

Sihtühik on ühik, millesse teisendatakse. Mõlemad ühikud peavad olema sama tüüpi.

warning

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


Näited

=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.


Ala

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

Kirjeldus

Prefiks

"ang2" ; "ang^2"

Square angstrom

Jah

"ar"

Are

Jah

"ft2" ; "ft^2"

Square foot

Ei

"ha"

Hectare

Ei

"in2" ; "in^2"

Square inch

Ei

"ly2" ; "ly^2"

Square light-year

Ei

"m2" ; "m^2"

Square meter

Jah

"mi2" ; "mi^2"

Square international mile

Ei

"Morgen"

Morgen

Ei

"Nmi2" ; "Nmi^2"

Square nautical mile

Ei

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

Square pica point

Ei

"pica2" ; "pica^2"

Square pica

Ei

"uk_acre" ; "acre"

International acre

Ei

"us_acre"

US survey acre

Ei

"yd2" ; "yd^2"

Square yard

Ei


Energia

Unit symbol

Kirjeldus

Prefiks

"BTU" ; "btu"

British thermal unit

Ei

"c"

Thermochemical calorie

Jah

"cal"

International Steam Table calorie

Jah

"e"

erg

Jah

"eV" ; "ev"

Electron volt

Jah

"flb"

Foot-pound

Ei

"HPh" ; "hh"

Horsepower-hour

Ei

"J"

Joule

Jah

"Wh" ; "wh"

Watt-hour

Jah


Flux density

Unit symbol

Kirjeldus

Prefiks

"ga"

Gauss

Jah

"T"

Tesla

Jah


Jõud

Unit symbol

Kirjeldus

Prefiks

"dyn" ; "dy"

Dyne

Jah

"N"

Newton

Jah

"lbf"

Pound-force

Ei

"pond"

Pond

Jah


Teave

Unit symbol

Kirjeldus

Prefiks

"bit"

Bit

Jah

"byte"

Byte

Jah


Length and distance

Unit symbol

Kirjeldus

Prefiks

"ang"

Angstrom

Jah

"ell"

Ell

Ei

"ft"

Jalg

Ei

"in"

Toll

Ei

"ly" ; "lightyear"

Light-year

Jah

"m"

Meeter

Jah

"mi"

International mile

Ei

"Nmi"

Nautical mile

Ei

"parsec" ; "pc"

Parsec

Jah

"Pica" ; "picapt"

Pica point

Ei

"pica"

Piika

Ei

"survey_mi"

US survey mile

Ei

"yd"

Yard

Ei


Mass and weight

Unit symbol

Kirjeldus

Prefiks

"cwt" ; "shweight"

Short hundredweight

Ei

"g"

Gram

Jah

"grain"

Grain

Ei

"lbm"

Pound

Ei

"ozm"

Ounce

Ei

"pweight"

Pennyweight

Ei

"sg"

Slug

Ei

"stone"

Hall kivi

Ei

"ton"

Short ton

Ei

"u"

Unified atomic mass unit

Jah

"uk_cwt" ; "lcwt" ; "hweight"

Long hundredweight

Ei

"uk_ton" ; "LTON" ; "brton"

Long ton

Ei


Aste

Unit symbol

Kirjeldus

Prefiks

"HP" ; "h"

Mechanical horsepower

Ei

"PS"

Pferdestärke or metric horsepower

Ei

"W" ; "w"

Watt

Jah


Rõhk

Unit symbol

Kirjeldus

Prefiks

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

Standard atmosphere

Jah

"mmHg"

Millimeter of mercury

Jah

"Pa"

Pascal

Jah

"psi"

Pound per square inch

Ei

"Torr"

Torr

Ei


warning

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


Kiirus

Unit symbol

Kirjeldus

Prefiks

"admkn"

Admiralty knot

Ei

"kn"

International knot

Ei

"m/h" ; "m/hr"

Meters per hour

Jah

"m/s" ; "m/sec"

Meters per second

Jah

"mph"

Miles per hour

Ei


Temperatuur

Unit symbol

Kirjeldus

Prefiks

"C" ; "cel"

Degree Celsius

Ei

"F" ; "fah"

Degree Fahrenheit

Ei

"K" ; "kel"

Kelvin

Jah

"Rank"

Degree Rankine

Ei

"Reau"

Degree Réaumur

Ei


Kellaaeg

Unit symbol

Kirjeldus

Prefiks

"day" ; "d"

Päev

Ei

"hr"

Tund

Ei

"mn" ; "min"

Minut

Ei

"sec" ; "s"

Sekund

Jah

"yr"

Aasta

Ei


Köide

Unit symbol

Kirjeldus

Prefiks

"ang3" ; "ang^3"

Cubic angstrom

Jah

"barrel"

Oil barrel

Ei

"bushel"

US bushel

Ei

"cup"

US cup

Ei

"ft3" ; "ft^3"

Cubic foot

Ei

"gal"

US gallon

Ei

"Glass"(2)

Australian glass (200 milliliters)

Ei

"GRT" ; "regton"

Gross register tonnage

Ei

"Humpen"(2)

Humpen (500 milliliters)

Ei

"in3" ; "in^3"

Cubic inch

Ei

"l" ; "L" ; "lt"

Liter

Jah

"ly3" ; "ly^3"

Cubic light-year

Ei

"m3" ; "m^3"

Cubic meter

Jah

"mi3" ; "mi^3"

Cubic international mile

Ei

"Middy"(2)

Australian middy (285 milliliters)

Ei

"MTON"

Measurement ton

Ei

"Nmi3" ; "Nmi^3"

Cubic nautical mile

Ei

"oz"

US fluid ounce

Ei

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

Cubic pica point

Ei

"pica3" ; "pica^3"

Cubic pica

Ei

"pt" ; "us_pt"

US pint

Ei

"qt"

US quart

Ei

"Schooner"(2)

Australian schooner (425 milliliters)

Ei

"Sixpack"(2)

Six pack (2 liters)

Ei

"tbs"

US tablespoon

Ei

"tsp"

US teaspoon

Ei

"tspm"

Metric teaspoon

Ei

"uk_gal"

Imperial gallon

Ei

"uk_pt"

Imperial pint

Ei

"uk_qt"

Imperial quart

Ei

"yd3" ; "yd^3"

Cubic yard

Ei


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

Prefiks

Kordaja

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

Prefiks

Kordaja

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

Palun toeta meid!