Pular para o conteúdo
officetuning.aiofficetuning.ai
TreinamentosConsultoriaBibliotecaFerramentasConteúdoPortfólio
Entrar
officetuning.aiofficetuning.ai

Treinamento, consultoria e mentoria para decidir, construir e aprender nas quatro frentes da marca.

AI · Data · Productivity · Dev · São Paulo
contato@officetuning.ai
TreinamentosPower BIExcelSQLPowerPointIA + ProdutividadeTodos os treinamentos
PortalConsultoriaBibliotecaPortfólioBackground BuilderDashboard CanvasConteúdo
InstitucionalPolítica de privacidadeInformações legais
© 2026 officetuning.ai · São Paulo
  1. Biblioteca
  2. Power Query (M)
  3. Funções M
  4. Replacer.ReplaceText

Replacer.ReplaceText

MSubstituidor

Substitui o texto old pelo texto new no text original. Esta função de substituição pode ser usada em List.ReplaceValue e Table.ReplaceValue.

Sintaxe

M
Replacer.ReplaceText(text as nullable text, old as text, new as text) as nullable text

Parâmetros

textnullable textObrigatório

Texto original.

M
"hEllo world"
oldtextObrigatório

Texto a ser substituído.

M
"hE"
newtextObrigatório

Texto de substituição.

M
"He"

Retorna

nullable text

Exemplo

M
Replacer.ReplaceText("hEllo world", "hE", "He")

Resultado

M
"Hello world"

Mais informações

Subgrupo
Replacer
Referência
https://learn.microsoft.com/pt-br/powerquery-m/replacer-replacetext
Função anteriorRecord.TransformFieldsPróxima função Replacer.ReplaceValue
Biblioteca