excel中转换为数值_在Excel中转换测量

excel中转换为数值

Last weekend I set up a little spreadsheet in Excel to compare the cost of a trip in a rented RV versus a small car. The only gas consumption numbers I could find for the RV were in miles per gallon.

上周末,我在Excel中设置了一个电子表格,以比较租用的RV和小型汽车的旅行费用。 我可以找到的RV的唯一汽油消耗量是每加仑英里。

Since we use the metric system here in Canada, I needed to convert everything to kilometres and litres.

由于我们在加拿大使用公制,因此我需要将所有单位转换为公里和公升。

Fortunately, Excel has a CONVERT worksheet function that makes the conversion easy. The only tricky part is remembering the codes for each type of unit. Most are intuitive, such as ft for foot and g for gram, but a few aren't, like lbm for pound mass.

幸运的是,Excel具有CONVERT工作表功能,使转换变得容易。 唯一棘手的部分是记住每种类型单元的代码。 大部分是直观的,例如ft表示英尺,g表示克,但是有些则不是,例如lbm表示磅质量。

To calculate how many litres are in a gallon, I used the formula: =CONVERT(1, "gal","l")

要计算一加仑有多少升,我使用了公式:= CONVERT(1,“ gal”,“ l”)

In the formula, gal is the code for gallon, and l (lower case L) is the code for litre. And yes, it's way more expensive to make the trip in an RV.

在公式中,gal是加仑的代码,l(小写L)是升的代码。 是的,在RV中进行旅行要昂贵得多。

翻译自: https://contexturesblog.com/archives/2008/07/04/convert-measurements-in-excel/

excel中转换为数值

你可能感兴趣的:(excel,python,c++,数据分析,poi)