Power query remplacer les 2 derniers caractères

Home Forums Power Query Power query remplacer les 2 derniers caractères

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #87172
    pierro1234
    Participant

    Bonjour,
    Ci-joint un fichier excel “R2” contenant une requête power query.
    Les cellules en vert sont le résultat attendu de la requête, à savoir:
    Remplacer les 2 derniers caractères par “00”
    J’ai essayé avec Replace.text pais je n’y arrive pas!!!!
    Merci.

    Attachments:
    You must be logged in to view attached files.
    #87176
    Stéphane Lorin
    Participant

    Bonjour

    Essayez
    Text.Start([Votre colonne],Text.Length([Votre colonne])-2) &”00″
    ou
    Text.ReplaceRange([Votre colonne], Text.Length([Votre colonne])-2, 2, “00”)
    Text.Length -2 ou -1 à tester car les positions dans PowerQuery commencent à 0

    Stéphane

    #87177
    pierro1234
    Participant

    Bonjour Stéphane,
    Je te remercie,
    Cela fonctionne très bien,
    Pierre.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.