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. Text.Range

Text.Range

MTexto

Retorna a parte de text que começa na posição offset. O parâmetro opcional count define quantos caracteres retornar.

Sintaxe

M
Text.Range(text as nullable text, offset as number, optional count as nullable number) as nullable text

Parâmetros

textnullable textObrigatório

Texto de origem.

M
"Hello World"
offsetnumberObrigatório

Posição inicial, começando em 0.

M
6
countnullable numberOpcional

Quantidade de caracteres a retornar.

Retorna

nullable text

Exemplo

M
Text.Range("Hello World", 6)

Resultado

M
"World"

Observações

Gera erro se não houver caracteres suficientes.

Mais informações

Subgrupo
Text
Referência
https://learn.microsoft.com/pt-br/powerquery-m/text-range
Função anteriorText.ProperPróxima função Text.Remove
Biblioteca