La page que vous avez demandée n'est pas disponible dans votre langue pour le moment. Vous pouvez sélectionner une autre langue au bas de la page ou traduire instantanément une page Web dans une langue de votre choix en utilisant la fonctionnalité de traduction intégrée à Google Chrome.

SUBSTITUTE()

Text with replacements

Returns the resulting text with the specified text replaced with new text.

Sample usage

SUBSTITUTE("abc", "a", "A") returns Abc

SUBSTITUTE("+1 212-555-1212", "-", ".") returns +1 212.555.1212

SUBSTITUTE("Hello, {}!", "{}", "Bob") returns Hello, Bob!

Syntax

SUBSTITUTE(text-to-search, search-for, replace-with)

  • text-to-search - Any textual type that specifies the text containing occurrences of search-for to be replaced with replace-with.
  • search-for - Any textual type that specifies the text to be replaced where found in text-to-search.

  • replace-with - Any textual type that specifies the text to replace each occurrence of search-for found in text-to-search.

See also

CONCATENATE()

CONTAINS()

FIND()

INITIALS()

LEFT()

MID()

RIGHT()

TRIM()

 

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Main menu
14705420541933140254
true
Search Help Center
true
true
true
false
false