Función REEMPLAZAR

Categoría: Texto
Nombre en inglés: REPLACE

¿Qué hace?

Reemplaza parte de una cadena de texto con otra cadena de texto indicada.

Sintaxis

REEMPLAZAR(texto_original, núm_inicial, núm_de_caracteres, texto_nuevo)

  • texto_original (obligatorio): El texto que contiene los caracteres a reemplazar.
  • núm_inicial (obligatorio): La posición dentro del texto donde se iniciará el reemplazo.
  • núm_de_caracteres (obligatorio): La cantidad de caracteres que se reemplazarán.
  • texto_nuevo (obligatorio): El texto que reemplazará los caracteres originales.

Ejemplos

REEMPLAZAR(“0123456789”, 3, 6, “*”) = “01*89”
REEMPLAZAR(“Año 2012”, 7, 2, “13”) = “Año 2013”