从字符串中提取十进制数字,并在excel中进行汇总 [英] Extract decimal number from string and sum them up in excel
本文介绍了从字符串中提取十进制数字,并在excel中进行汇总的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从字符串中提取十进制数字并将它们加起来.
I would like to extract decimal number from a string and sum them up.
例如:
A1= A1.55
B1=B2
在C1列中,我只想对字母 A 和 B 之后的十进制数字求和.因此,我在 C 列中的总数应为 = 1.55 + 2 = 3.55
In the C1 column, I would like to sum just the decimal number after the letter A and B. So my total in column C should be = 1.55 + 2 = 3.55
我在互联网上找到了一些示例,但这仅适用于四舍五入的数字,而不适用于十进制数字
I found some example on the internet but this only works for rounded numbers, not decimal numbers
=SUMPRODUCT(RIGHT("00"&A1:B1,2)+0)
推荐答案
=SUMPRODUCT(--MID(A1:B1,2,15))
和往常一样,如果您的样本不能真正代表您的数据,则此简单公式将失败.
As always, if your sample is not truly representative of your data, this simple formula will fail.
在这种情况下,数据的相关部分是
In this case, the relevant part of your data is that
- 总和之前总是只有一个非数字字符.
这篇关于从字符串中提取十进制数字,并在excel中进行汇总的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文