Todo los métodos para extraer caracteres de una celda Excel

Compatibilidad: Excel 365 2021 2019 2016

Al pegar o importar datos tenemos que extraer caracteres de una celda Excel, te mostramos todos los métodos.

Todo los métodos para extraer caracteres de una celda Excel
  • 3 PRIMEROS CARACTERES

  1. Ir a: Celda D1 / Escribir:

    =IZQUIERDA(ESPACIOS(A1);3)

    O también: =IZQUIERDA(A1;3)

  2. Mostrará: N.I

    Extraer 3 PRIMEROS CARACTERES
  • 3 ÚLTIMOS CARACTERES

  1. Ir a: Celda D2 / Escribir:

    =DERECHA(A1;3)

    O también: =DERECHA(ESPACIOS(A1);3)
    O también: =EXTRAE(A1;LARGO(A1)-2;4)

  2. Mostrará: dad.

    Extraer 3 ÚLTIMOS CARACTERES
  • PENÚLTIMO CARACTER

  1. Ir a: Celda D3 / Escribir:

    =EXTRAE(A1;LARGO(A1)-1;1)
  2. Mostrará: a.

    Extraer PENÚLTIMO CARACTER
  • PRIMERA PALABRA

  1. Ir a: Celda D4 / Escribir:

    =IZQUIERDA(A1;ENCONTRAR(" ";A1)-1)
  2. Mostrará: N.I.F.

    Extraer PRIMERA PALABRA
  • ÚLTIMA PALABRA

  1. Ir a: Celda D5 / Escribir:

    =DERECHA(A1;ENCONTRAR(" ";A1)*1)

    O también: =DERECHA(A1;HALLAR(" ";A1;HALLAR(" ";A1;1)+0))
    O también: =DERECHA(A1;HALLAR(" ";A1;1))

  2. Mostrará: Ciudad.

    Extraer ÚLTIMA PALABRA
  • 2 PRIMERAS PALABRAS

  1. Ir a: Celda D6 / Escribir:

    =IZQUIERDA(A1;HALLAR(" ";A1;HALLAR(" ";A1;1)+1))

    O también: = ESPACIOS(IZQUIERDA(SUSTITUIR(A1;" ";REPETIR(" "; 100));200))

  2. Mostrará: N.I.F. 12345678S.

    Extraer 2 PRIMERAS PALABRAS
  • 3 PRIMERAS PALABRAS

  1. Ir a: Celda D7 / Escribir:

    =IZQUIERDA(A1;ENCONTRAR("^";SUSTITUIR(A1 & " "; " "; "^"; 3)) - 1)
  2. Mostrará: N.I.F. 12345678S -.

    Extraer 3 PRIMERAS PALABRAS
  • 3 ÚLTIMAS PALABRAS

  1. Ir a: Celda D8 / Escribir:

    =ESPACIOS(DERECHA(SUSTITUIR(ESPACIOS(A1);" ";REPETIR(" ";60));180))
  2. Mostrará: - Residencia. Ciudad.

    Extraer 3 ÚLTIMAS PALABRAS
  • 4ª PALABRA

  1. Ir a: Celda D9 / Escribir:

    =ESPACIOS(EXTRAE(SUSTITUIR(A1;" ";REPETIR(" ";LARGO(A1)));(4-1)*LARGO(A1)+1;LARGO(A1)))

    O también: =EXTRAE (EXTRAE (EXTRAE (SUSTITUIR (A1;" "; "^";3); 1;256); ENCONTRAR("^"; SUSTITUIR(A1;" ";"^";3 ));256) ;2;ENCONTRAR (" ";EXTRAE (EXTRAE(SUSTITUIR (A1;" ";"^";3) ;1;256) ;ENCONTRAR ("^";SUSTITUIR (A1;" ";"^" ;3)); 256)) -2)

  2. Mostrará: Apellidos.

    Extraer 4ª PALABRA
  • DESDE LA 1ª PALABRA HASTA "-"

  1. Ir a: Celda D10 / Escribir:

    =IZQUIERDA(A1;HALLAR("-";A1)-1)
  2. Mostrará: N.I.F. 12345678S.

    Extraer DESDE LA 1ª PALABRA HASTA -
  • DESDE CARACTER "-" HASTA EL FINAL

  1. Ir a: Celda D11 / Escribir:

    =EXTRAE(A1;ENCONTRAR("-";A1)+1;256)

    O también: =DERECHA(A1;LARGO(A1)-HALLAR("-"; A1))

  2. Mostrará: Apellidos y Nombre - Residencia. Ciudad.

    Extraer DESDE CARACTER - HASTA EL FINAL
  • SEGÚN NÚMERO DE CARACTERES

Extraer 10 caracteres a partir de la posición 8.

  1. Ir a: Celda D12 / Escribir:

    =EXTRAE(A1;8;10)

    O también: =ESPACIOS(EXTRAE(SUSTITUIR(A1;" ";REPETIR(" ";99));100;99))

  2. Mostrará: 12345678S.

    Extraer SEGÚN NÚMERO DE CARACTERES
  • TODO EXCEPTO LA PRIMERA PALABRA

  1. Ir a: Celda D13 / Escribir:

    =EXTRAE(A1;HALLAR(" ";A1;1)+1;LARGO(A1))
  2. Mostrará: 12345678S - Apellidos y Nombre - Residencia. Ciudad.

    Extraer TODO EXCEPTO LA PRIMERA PALABRA
  • EXTRAER NÚMEROS

  1. Ir a: Celda D14 / Escribir:

    =EXTRAE(A1;MIN(SI.ERROR(ENCONTRAR({0\1\2\3\4\5\6\7\8\9};A1);""));CONTAR(1*EXTRAE(A1;FILA($1:$101);1)))
  2. Pulsar la tecla F2, para editar la fórmula / Pulsar la tecla Control y mantenerla pulsada / Pulsar la tecla Mayús. y mantener las 2 teclas pulsadas / Pulsar la tecla Enter. Insertará la fórmula entre llaves como matricial {=EXTRAE (A1;MIN (SI.ERROR (ENCONTRAR ({0\1\2\3\4\5\6\7\8\9} ;A1); "")); CONTAR( 1*EXTRAE (A1;FILA ($1:$101) ;1)))}

  3. Mostrará: 12345678.

    Extraer NÚMEROS
Nivel de dificultad: Avanzado Excel Avanzado

- Consultar:

25 comentarios en “Todo los métodos para extraer caracteres de una celda Excel

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.