microsoft_excel:convert_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
microsoft_excel:convert_function [2020/11/15 20:16] – peter | microsoft_excel:convert_function [2021/08/04 13:43] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Microsoft Excel - Convert Function ====== | ||
- | |||
- | Converts a number from one measurement system to another. | ||
- | |||
- | For example, **CONVERT** can translate a table of distances in miles to a table of distances in kilometers. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Syntax ===== | ||
- | |||
- | < | ||
- | CONVERT(number, | ||
- | </ | ||
- | |||
- | where: | ||
- | |||
- | * **number**: is the value in from_units to convert. | ||
- | * **from_unit**: | ||
- | * **to_unit**: | ||
- | |||
- | ---- | ||
- | |||
- | CONVERT accepts the following text values (in quotation marks) for from_unit and to_unit. | ||
- | |||
- | |**Weight and mass**|**From_unit or to_unit**| | ||
- | |Gram|" | ||
- | |Slug|" | ||
- | |Pound mass (avoirdupois)|" | ||
- | |U (atomic mass unit)|" | ||
- | |Ounce mass (avoirdupois)|" | ||
- | |Grain|" | ||
- | |U.S. (short) hundredweight|" | ||
- | |Imperial hundredweight|" | ||
- | |Stone|" | ||
- | |Ton|" | ||
- | |Imperial ton|" | ||
- | | | | | ||
- | |**Distance**|**From_unit or to_unit**| | ||
- | |Meter|" | ||
- | |Statute mile|" | ||
- | |Nautical mile|" | ||
- | |Inch|" | ||
- | |Foot|" | ||
- | |Yard|" | ||
- | |Angstrom|" | ||
- | |Ell|" | ||
- | |Light-year|" | ||
- | |Parsec|" | ||
- | |Pica (1/72 inch)|" | ||
- | |Pica (1/6 inch)|" | ||
- | |U.S survey mile (statute mile)|" | ||
- | | | | | ||
- | |**Time**|**From_unit or to_unit**| | ||
- | |Year|" | ||
- | |Day|" | ||
- | |Hour|" | ||
- | |Minute|" | ||
- | |Second|" | ||
- | | | | | ||
- | |**Pressure**|**From_unit or to_unit**| | ||
- | |Pascal|" | ||
- | |Atmosphere|" | ||
- | |mm of Mercury|" | ||
- | |PSI|" | ||
- | |Torr|" | ||
- | | | | | ||
- | |**Force**|**From_unit or to_unit**| | ||
- | |Newton|" | ||
- | |Dyne|" | ||
- | |Pound force|" | ||
- | |Pond|" | ||
- | | | | | ||
- | |**Energy**|**From_unit or to_unit**| | ||
- | |Joule|" | ||
- | |Erg|" | ||
- | |Thermodynamic calorie|" | ||
- | |IT calorie|" | ||
- | |Electron volt|" | ||
- | |Horsepower-hour|" | ||
- | |Watt-hour|" | ||
- | |Foot-pound|" | ||
- | |BTU|" | ||
- | | | | | ||
- | |**Power**|**From_unit or to_unit**| | ||
- | |Horsepower|" | ||
- | |Pferdestärke|" | ||
- | |Watt|" | ||
- | | | | | ||
- | |**Magnetism**|**From_unit or to_unit**| | ||
- | |Tesla|" | ||
- | |Gauss|" | ||
- | | | | | ||
- | |**Temperature**|**From_unit or to_unit**| | ||
- | |Degree Celsius|" | ||
- | |Degree Fahrenheit|" | ||
- | |Kelvin|" | ||
- | |Degrees Rankine|" | ||
- | |Degrees Réaumur|" | ||
- | | | | | ||
- | |**Volume (or liquid measure )**|**From_unit or to_unit**| | ||
- | |Teaspoon|" | ||
- | |Modern teaspoon|" | ||
- | |Tablespoon|" | ||
- | |Fluid ounce|" | ||
- | |Cup|" | ||
- | |U.S. pint|" | ||
- | |U.K. pint|" | ||
- | |Quart|" | ||
- | |Imperial quart (U.K.)|" | ||
- | |Gallon|" | ||
- | |Imperial gallon (U.K.)|" | ||
- | |Liter|" | ||
- | |Cubic angstrom|" | ||
- | |U.S. oil barrel|" | ||
- | |U.S. bushel|" | ||
- | |Cubic feet|" | ||
- | |Cubic inch|" | ||
- | |Cubic light-year|" | ||
- | |Cubic meter|" | ||
- | |Cubic Mile|" | ||
- | |Cubic yard|" | ||
- | |Cubic nautical mile|" | ||
- | |Cubic Pica|" | ||
- | |Gross Registered Ton|" | ||
- | |Measurement ton (freight ton)|" | ||
- | | | | | ||
- | |**Area**|**From_unit or to_unit**| | ||
- | |International acre|" | ||
- | |U.S. survey/ | ||
- | |Square angstrom|" | ||
- | |Are|" | ||
- | |Square feet|" | ||
- | |Hectare|" | ||
- | |Square inches|" | ||
- | |Square light-year|" | ||
- | |Square meters|" | ||
- | |Morgen|" | ||
- | |Square miles|" | ||
- | |Square nautical miles|" | ||
- | |Square Pica|" | ||
- | |Square yards|" | ||
- | | | | | ||
- | |**Information**|**From_unit or to_unit**| | ||
- | |Bit|" | ||
- | |Byte|" | ||
- | | | | | ||
- | |**Speed**|**From_unit or to_unit**| | ||
- | |Admiralty knot|" | ||
- | |Knot|" | ||
- | |Meters per hour|" | ||
- | |Meters per second|" | ||
- | |Miles per hour|" | ||
- | |||
- | ---- | ||
- | |||
- | The following abbreviated unit prefixes can be prepended to any metric from_unit or to_unit. | ||
- | |||
- | |**Prefix**|**Multiplier**|**Abbreviation**| | ||
- | |yotta|1E+24|" | ||
- | |zetta|1E+21|" | ||
- | |exa|1000000000000000000|" | ||
- | |peta|1000000000000000|" | ||
- | |tera|1000000000000|" | ||
- | |giga|1000000000|" | ||
- | |mega|1000000|" | ||
- | |kilo|1000|" | ||
- | |hecto|100|" | ||
- | |dekao|10|" | ||
- | |deci|0.1|" | ||
- | |centi|0.01|" | ||
- | |milli|0.001|" | ||
- | |micro|0.000001|" | ||
- | |nano|0.000000001|" | ||
- | |pico|0.000000000001|" | ||
- | |femto|0.000000000000001|" | ||
- | |atto|0.000000000000000001|" | ||
- | |zepto|1E-21|" | ||
- | |yocto|1E-24|" | ||
- | | | | | | ||
- | |**Binary Prefix**|**Prefix Value**|**Abbreviation**|**Derived from**| | ||
- | |yobi|2%%^%%80 = 1 208 925 819 614 629 174 706 176|" | ||
- | |zebi|2%%^%%70 = 1 180 591 620 717 411 303 424|" | ||
- | |exbi|2%%^%%60 = 1 152 921 504 606 846 976|" | ||
- | |pebi|2%%^%%50 = 1 125 899 906 842 624|" | ||
- | |tebi|2%%^%%40 = 1 099 511 627 776|" | ||
- | |gibi|2%%^%%30 = 1 073 741 824|" | ||
- | |mebi|2%%^%%20 = 1 048 576|" | ||
- | |kibi|2%%^%%10 = 1024|" | ||
- | |||
- | ---- | ||
- | |||
- | ===== Remarks ===== | ||
- | |||
- | * If the input data types are incorrect, CONVERT returns the #VALUE! error value. | ||
- | * If the unit does not exist, CONVERT returns the #N/A error value. | ||
- | * If the unit does not support a binary prefix, CONVERT returns the #N/A error value. | ||
- | * If the units are in different groups, CONVERT returns the #N/A error value. | ||
- | |||
- | Unit names and prefixes are case-sensitive. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Example ===== | ||
- | |||
- | |**Formula**|**Description**|**Result**| | ||
- | |=CONVERT(1, | ||
- | |=CONVERT(68, | ||
- | |=CONVERT(2.5, | ||
- | |=CONVERT(CONVERT(100," | ||
- | |||
microsoft_excel/convert_function.1605471404.txt.gz · Last modified: 2020/11/15 20:16 by peter