Bonjour,
possible par formule en précisant à partir de quel mot tronquer : =DROITE(A1;NBCAR(A1)-CHERCHE("toto";A1)+1) …
Sinon je ne vois pas mieux qu'une fonction personnalisée VBA :
1 2 3 4 5 6 7 8 9
| Function Derniers$(Rg As Range, NBR%, Optional SEP$ = " ")
SP = Split(Rg(1).Text, SEP): NBR = NBR - 1
If NBR >= 0 And UBound(SP) >= NBR Then
ReDim AR$(NBR)
For N% = 0 To NBR: AR(N) = SP(UBound(SP) - NBR + N): Next
Derniers = Join(AR, SEP)
End If
End Function |
Formule :
=Derniers(A1;3;"_")
__________________________________________________________________________________________
Merci de cliquer sur
![+1](https://www.developpez.net/forums/images/smilies/poucevert.gif)
pour chaque message ayant aidé puis sur
![:resolu:](https://www.developpez.net/forums/images/buttons/resolu.gif)
pour clore cette discussion …
Partager