Substring ? string ?

Venaissin

XLDnaute Junior
I have strings like below in one Excel field , out of which I would like to « extract»
A/ the position with the parenthesis ex: (5e position)
B/ the name of the element

Is there a way to automate that? (substring ?)

see attachment

Thanks a lot
 

Pièces jointes

  • excel extract.JPG
    excel extract.JPG
    36.2 KB · Affichages: 48

Paf

XLDnaute Barbatruc
Re : Substring ? string ?

et Bonjour !

pourquoi pas en français comme d'habitude ?

Par formule, selon l'exemple fourni, peut être:

en A7 : =GAUCHE(A1;CHERCHE("(";A1;1)-1)
en B7 : =STXT(A1;CHERCHE(":";A1;1)+1;CHERCHE("(";A1;CHERCHE(":";A1;1))-CHERCHE(":";A1;1)-1)
en C7 : =STXT(A1;CHERCHE("(";A1;CHERCHE(":";A1;1))+1;CHERCHE("e";A1;CHERCHE(":";A1;1))-CHERCHE("(";A1;CHERCHE(":";A1;1))-1)

Bonne suite
 

st007

XLDnaute Barbatruc
Re : Substring ? string ?

Bonjour,

comme j'y étais

PAF utilise cherche, j'utilise trouve
mais bon l'important est le résultat non ?
 

Pièces jointes

  • Classeur1.xlsx
    9.7 KB · Affichages: 52
  • Classeur1.xlsx
    9.7 KB · Affichages: 44
  • Classeur1.xlsx
    9.7 KB · Affichages: 54

Discussions similaires

Statistiques des forums

Discussions
312 654
Messages
2 090 564
Membres
104 577
dernier inscrit
GOGNAN