|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
简化不了了。参与一下。
=SUBSTITUTE(TEXT(SUM(MOD(SUM(TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0 "}&A2:B2,"天"," "),"小时","/24"),"G/通用格式;;;!0")*{1,-1}),9^{9,0,0})/{24,-24,60})-1%%%,"[<3E-2][M]小时;[<417][H]天M小时;"),"天0小时","天")
==================================================================================================
题目好难!目前做到这一步。
=SUBSTITUTE(TEXT(SUM(INT(SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),".000%;;;!0"))*4^{0,7,0})/{-60,983040,24}),"[>2E-2][H]天M小时;[>][M]小时;"),"天0小时","天")
==================================================================================================
=MID(SUBSTITUTE(SUBSTITUTE(TEXT(SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),"G/通用格式;;;!0")),"[>=1]-0天0/24;[>]-#/24;"),"/24","小时"),"天0小时","天"),2,9)
==================================================================================================
=SUBSTITUTE(SUBSTITUTE(TEXT(MAX(,SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),"G/通用格式;;;!0"))),"[>=1]0天0/24;[>]#/24;"),"/24","小时"),"天0小时","天")
==================================================================================================
=SUBSTITUTE(SUBSTITUTE(TEXT(MAX(,SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),1%%%&";;;!0"))),"[>=1]#天0/24;[>]#/24;"),"/24","小时"),"天0小时","天")
==================================================================================================
=SUBSTITUTE(SUBSTITUTE(TEXT(SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),".000%;;;!0")),"#天0/24;;"),"天0/24","天"),"/24","小时")
==================================================================================================
=SUBSTITUTE(TEXT(SUM({1,-1}*TEXT(SUBSTITUTE(SUBSTITUTE({" ";"0天"}&A2:B2,"天"," "),"小时","/24"),"G/通用格式;;0;!0")),"#天#/24天;;"),"/24天","小时")
[ 本帖最后由 wangg913 于 2010-9-9 08:51 编辑 ] |
评分
-
1
查看全部评分
-
|