=SUM(--TEXT(SUBSTITUTE({"0时","0时",0}&A1:A8,"时","时0分",{3,1,1}),"h:m:s;;0;!0"))
长度77,超了。
=====================================================================
既然不对,就改改。
=SUM(--TEXT(SUBSTITUTE(TEXT({"0时",0}&A1:A8,"@"),"时","时0分"),"h:m:s;;0;!0"))
不知这回对不对?
=SUM(--TEXT(SUBSTITUTE({"0时","0时",0}&TEXT(A1:A8,"@"),{"","时","时"},"时0分"),"h:m:s;;0;!0"))
=SUM(--TEXT(SUBSTITUTE(TEXT(SUBSTITUTE({"0时",0}&TEXT(A1:A8,"@"),"时","时0分"),"@"),"0分",),"h:m:s;;0;!0"))
======================================================================
建议将所有可能的数据类型,一一列出,并将数据格式改为文本型。
比如:
1分1秒
1分
1时
1时4秒
9秒
6时7分
5时4分3秒
6:00:02
===================================================================
[ 本帖最后由 wangg913 于 2010-5-11 11:58 编辑 ] |