|
谢谢高手指导,工作方便多了。因为工作性质涉及公英制转公制,方便操作者。IF(ISNUMBER(FIND("/",G3)),"英寸→mm:"&IF(ISNUMBER(FIND("mm",G3)),TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(A1)*66,66)),IF(ISNUMBER(FIND("/",G3)),25.4*(IF(ISNUMBER(FIND("/",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(A1)*66,66))))*NOT(ISNUMBER(FIND("-",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(A1)*66,66))))),"0 ","")&SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(A1)*66,66)),"""",),"-"," ")),""))&"x"&IF(ISNUMBER(FIND("mm",G3)),TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(B1)*66,66)),IF(ISNUMBER(FIND("/",G3)),25.4*(IF(ISNUMBER(FIND("/",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(B1)*66,66))))*NOT(ISNUMBER(FIND("-",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(B1)*66,66))))),"0 ","")&SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(B1)*66,66)),"""",),"-"," ")),""))&"x"&IF(ISNUMBER(FIND("mm",G3)),TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(C1)*66,66)),IF(ISNUMBER(FIND("/",G3)),25.4*(IF(ISNUMBER(FIND("/",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(C1)*66,66))))*NOT(ISNUMBER(FIND("-",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(C1)*66,66))))),"0 ","")&SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(C1)*66,66)),"""",),"-"," ")),""))&"x"&IF(ISNUMBER(FIND("mm",G3)),TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(D1)*66,66)),IF(ISNUMBER(FIND("/",G3)),25.4*(IF(ISNUMBER(FIND("/",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(D1)*66,66))))*NOT(ISNUMBER(FIND("-",TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(D1)*66,66))))),"0 ","")&SUBSTITUTE(SUBSTITUTE(TRIM(MID(SUBSTITUTE("*"&$G3,"*",REPT(" ",66)),COLUMN(D1)*66,66)),"""",),"-"," ")),"")),"") |
|