How to remove all text from right after certain characters in excel

前端 未结 3 830
你的背包
你的背包 2021-01-24 23:58

Sorry I\'m a noob in excel and need help with this. Say I have the following text in my excel.

  1. D:/folder A/ folder B.1/text_01.txt
  2. D:/folder A/Folder C/
3条回答
  •  醉酒成梦
    2021-01-25 00:02

    Use LEFT() with FIND and SUBSTITUTE to find the last /

    =LEFT(A1,FIND("}}}",SUBSTITUTE(A1,"/","}}}",LEN(A1)-LEN(SUBSTITUTE(A1,"/","")))-1)
    

提交回复
热议问题