0
|
CD20160914Lv8专家互助发布于2024-7-10 11:53
|
if(RIGHT(A9,1)="K",EVAL(REPLACE(A9,"K","*1000")),EVAL(REPLACE(A9,"K","*1000+")))+ if(RIGHT(A9,1)="M",EVAL(REPLACE(A9,"M","*1000000")),EVAL(REPLACE(A9,"M","*1000000+")))+ if(RIGHT(A9,1)="R",EVAL(REPLACE(A9,"R",""))*1,if(LEFT(A9,1)="R",REPLACE(A9,"R","")/1000, EVAL(REPLACE(A9,"R","*1+0.1"))))
|
|
|
0
|
华莉星宸Lv7资深互助发布于2024-7-10 10:16
|
要写判断,你要判断R的位置,乘对应的系数 试试 if(left(G3,1)="R",EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(G3,"K","*1000+"),"R","*0.001"),"M","*1000000+"),"*1"),"+*1","")),if(right(G3,1)="R",EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(G3,"K","*1000+"),"R","*0.1"),"M","*1000000+"),"*1"),"+*1","")),EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(G3,"K","*1000+"),"R","*1+0.1"),"M","*1000000+"),"*1"),"+*1",""))))
|
-
用户AYnW76920187(提问者)
- R100的没有代换出来
-
华莉星宸 回复 用户AYnW76920187(提问者)
- if(left(G3,1)="R",EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(G3,"K","*1000+"),"R","0.001*"),"M","*1000000+"),"*1"),"+*1","")),if(right(G3,1)="R",EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(A2,"K","*1000+"),"R","*1"),"M","*1000000+"),"*1"),"+*1","")),EVAL(REPLACE(CONCATENATE(REPLACE(REPLACE(replace(G3,"K","*1000+"),"R","*0.1+"),"M","*1000000+"),"*1"),"+*1",""))))
|
|