需要从文本字符串中获取数字+添加小数
Need to get number from text string + add decimals
我在这里获得了非常棒的信息,但是找不到提取这个信息的方法:
我需要以我最终得到的方式从下面的单元格中拉出:“-5000,00”
12 août **It Brothers LLC** , -5.00000
请注意,粗体文本的字数可能因行而异。
尝试:
=TEXT(INDEX(SPLIT(A2; ",");;2)*1000; "#0,00")
或:
=TEXT(REGEXEXTRACT(A2; ", (-?\d+)")*1000; "#0,00")
假设您的单元格内容将有一个 .
和一个 ,
下面的公式将转换
12 août **It Brothers LLC** , -5.00000
到 -5000
:
=INT(INDEX(SPLIT(substitute(A2,".",""), ","),,2))/100
现在您有两个选项可以将数字转换为 -5000,00
- 添加“,00”作为字符串,例如
=CONCAT(A4,",00")
但是,在这种情况下,输出将不是数字。
2.Assign 结果 cell/column 的自定义数字格式,如下图所示。
Be aware that either the number will be shown as -5000,00
or
-5000.00
depends on your country Spreadsheet Settings.
我在这里获得了非常棒的信息,但是找不到提取这个信息的方法:
我需要以我最终得到的方式从下面的单元格中拉出:“-5000,00”
12 août **It Brothers LLC** , -5.00000
请注意,粗体文本的字数可能因行而异。
尝试:
=TEXT(INDEX(SPLIT(A2; ",");;2)*1000; "#0,00")
或:
=TEXT(REGEXEXTRACT(A2; ", (-?\d+)")*1000; "#0,00")
假设您的单元格内容将有一个 .
和一个 ,
下面的公式将转换
12 août **It Brothers LLC** , -5.00000
到 -5000
:
=INT(INDEX(SPLIT(substitute(A2,".",""), ","),,2))/100
现在您有两个选项可以将数字转换为 -5000,00
- 添加“,00”作为字符串,例如
=CONCAT(A4,",00")
但是,在这种情况下,输出将不是数字。
2.Assign 结果 cell/column 的自定义数字格式,如下图所示。
Be aware that either the number will be shown as
-5000,00
or-5000.00
depends on your country Spreadsheet Settings.