How do I export text from an excel cell with alphanumeric values into another column?

后端 未结 3 1751
深忆病人
深忆病人 2021-01-26 10:54

I have several cell entries in column B. They look similar to this:

1050670||Target Optical  4226||6132||7132
1051752||Wal-Mart Vision Ctr  305095||6132||7132
10         


        
3条回答
  •  失恋的感觉
    2021-01-26 11:01

    You may also use the below formula if you wish to. It does not use the Indirect function.

    =MID(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2),1,IF(ISNUMBER(VALUE(MID(SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ","¶",LEN(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2))-LEN(SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ",""))),FIND("¶",SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ","¶",LEN(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2))-LEN(SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ",""))))+1,50)))=TRUE,FIND("¶",SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ","¶",LEN(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2))-LEN(SUBSTITUTE(MID(A1,FIND("||",A1,1)+2,FIND("||",A1,FIND("||",A1,1)+2)-FIND("||",A1,1)-2)," ",""))))-1,50))

提交回复
热议问题