发布网友 发布时间:2022-04-20 16:55
共5个回答
热心网友 时间:2022-07-12 12:44
您好,方法热心网友 时间:2022-07-12 14:02
=(IF(COUNT(SEARCH("M",F2)),LEFT(F2,SEARCH("(",F2)-1),0)+IF(COUNT(SEARCH("M",G2)),LEFT(G2,SEARCH("(",G2)-1),0)+INT((-LOOKUP(1,-LEFT(IF(COUNTIF(F2,"*m*kb"),MID(F2,FIND(")",F2)+1,10),F2),ROW($1:$10)))+-LOOKUP(1,-LEFT(IF(COUNTIF(G2,"*m*kb"),MID(G2,FIND(")",G2)+1,10),G2),ROW($1:$10))))/1024))&"(M)"&MOD(-LOOKUP(1,-LEFT(IF(COUNTIF(F2,"*m*kb"),MID(F2,FIND(")",F2)+1,10),F2),ROW($1:$10)))+-LOOKUP(1,-LEFT(IF(COUNTIF(G2,"*m*kb"),MID(G2,FIND(")",G2)+1,10),G2),ROW($1:$10))),1024)&"KB"
热心网友 时间:2022-07-12 15:36
你要的公式:热心网友 时间:2022-07-12 17:28
麻烦是有点麻烦,你能说清楚数据是哪一个列与哪一个列的计算!
你能说清楚公式结果是在哪一个列,否则怎么可能做公式啊!
或者你举例说明计算后的目标效果图
根据你的图,估计是数据是在G、H列的吧!!!则可在 J2 单元格输入公式:
=IFERROR(TEXT(INT((IFERROR(EVALUATE(SUBSTITUTE(G2,"KB",)),EVALUATE(SUBSTITUTE(SUBSTITUTE(G2,"(M)","*1024+"),"KB",)))+IFERROR(EVALUATE(SUBSTITUTE(H2,"KB",)),EVALUATE(SUBSTITUTE(SUBSTITUTE(H2,"(M)","*1024+"),"KB",))))/1024),"0!(!M!);;")&TEXT(MOD(IFERROR(EVALUATE(SUBSTITUTE(G2,"KB",)),EVALUATE(SUBSTITUTE(SUBSTITUTE(G2,"(M)","*1024+"),"KB",)))+IFERROR(EVALUATE(SUBSTITUTE(H2,"KB",)),EVALUATE(SUBSTITUTE(SUBSTITUTE(H2,"(M)","*1024+"),"KB",))),1024),"0KB;;"),"")
复制并下拉,即可…………
热心网友 时间:2022-07-12 19:36
建议书写专用的代码。