Gardez un mémorandum des combinaisons de fonctions Excel.
=RIGHT(A1,LEN(A1)-FIND("★",SUBSTITUTE(A1,".","★",LEN(A1)-LEN((SUBSTITUTE(A1,".",""))))))
résultat
Échantillon de cellule A1.group1.StrClass
Résultat StrClass
=RIGHT(A1,LEN(A1)-FIND("★",SUBSTITUTE(A1,"\","★",LEN(A1)-LEN((SUBSTITUTE(A1,"\",""))))))
résultat
A1 cellule C:\vbaSample\sample\test.txt
Test de résultat.txt
=LEFT(A1,FIND("★",SUBSTITUTE(A1,"\","★",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))),1)-1)
résultat
A1 cellule C:\vbaSample\sample\test.txt
Résultat C:\vbaSample\sample
=LEFT(A1,FIND("★",SUBSTITUTE(A1,"\","★",LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))),1))
résultat
A1 cellule C:\vbaSample\sample\test.txt
Résultat C:\vbaSample\sample\