Saltar al contenido
GridBelt
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesión
Empezar la prueba gratuita
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesiónCrear cuenta
Empezar la prueba gratuita
GridBelt

Practica Excel en tu navegador.

Prueba de Excel

  • Nivel 1: Principiante
  • Nivel 2: Intermedio
  • Nivel 3: Experto
  • Prueba de Excel en 7 días
  • Clasificación
  • Prueba de Excel para entrevistas
  • Evaluación de Excel de Indeed

Práctica

  • Todos los ejercicios
  • Programas
  • Para principiantes

Guías

  • Fórmulas de Excel
  • Atajos de Excel

Empresa

  • Acerca de
  • Precios
  • Cómo corregimos

© GridBelt. Todos los derechos reservados.

  • Política de privacidad
  • Términos de uso
  • Política de reembolso

Excel es una marca comercial de Microsoft Corporation. Indeed, TestGorilla, SHL y otras marcas son propiedad de sus respectivos titulares. GridBelt es un sitio de práctica independiente y no está afiliado a Microsoft, TestGorilla, SHL ni Indeed, ni respaldado ni patrocinado por ellos.

  1. Práctica
  2. /
  3. Text functions

Split cells practice: user and domain from 150 e-mail addresses

  • Intermedio
  • ~7 min
  • Text functions

Enunciado en inglés

Marketing exported 150 contacts from the CRM with one e-mail column (B). The addresses differ in length and shape — from [email protected] to [email protected] — and 28 of them keep the capitalisation the contact typed. For a domain report the team needs the part before the @ in C (user) and the part after it in D (domain); 42 contacts use public mail providers such as gmail.com. Because the @ sits at a different position in every row, the split must locate it instead of counting characters.

Qué tienes que hacer

  1. 1Click C2 and find the position of the @ sign first: =FIND("@",B2) returns 11 for [email protected]. The user part is everything before it: =LEFT(B2,FIND("@",B2)-1).
  2. 2Click D2 and take everything after the @: =RIGHT(B2,LEN(B2)-FIND("@",B2)) — the total length minus the position of the @ is the number of characters in the domain.
  3. 3In Excel 365 you can use the newer functions instead: =TEXTBEFORE(B2,"@") in C2 and =TEXTAFTER(B2,"@") in D2.
  4. 4Fill C2:D2 down to row 151 (select C2:D151 and press Ctrl+D on Windows / ⌘D on Mac). Check that D2 reads evergreeninteriors.com and that no cell shows #VALUE!.

Celdas de respuesta

Corrección

Escribe tu fórmula en la cuadrícula, presiona Enter y luego haz clic en Comprobar. Evaluamos el valor de cada celda de respuesta y la fórmula que lo produce.

Tareas

  1. Sin comprobarIn C2, return the part of the e-mail in B2 before the @ sign (LEFT with FIND, or TEXTBEFORE in Excel 365), then fill down to C151.
  2. Sin comprobarIn D2, return the part of the e-mail in B2 after the @ sign (RIGHT with LEN and FIND, MID, or TEXTAFTER in Excel 365), then fill down to D151.

Para las tareas de hoja de cálculo se recomienda una pantalla grande. La hoja se desplaza dentro de este recuadro.

StartInsertFormulasDataView
A1fxPreparando tu libro…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Escribe tu fórmula en la hoja y luego comprueba.

Sobre este ejercicio

Un conjunto de datos de 150 filas en una hoja, 2 celdas de respuesta, unos 7 minutos. Se corrige en tu navegador: el valor y la fórmula que lo produce, con comentarios que te dicen qué arreglar.

Cómo resolverlo

  • C2=LEFT(B2,FIND("@",B2)-1)
  • D2=RIGHT(B2,LEN(B2)-FIND("@",B2))

FIND("@",B2) returns the position of the @ sign as a number, which turns a variable-length text into something LEFT and RIGHT can work with. LEFT(B2,FIND("@",B2)-1) keeps everything before the @ (one character fewer than its position), and RIGHT(B2,LEN(B2)-FIND("@",B2)) keeps the characters after it — the total length minus the position of the @. TEXTBEFORE and TEXTAFTER wrap this logic into one function each, but they exist only in Excel 365.

Pitfall 1: FIND is case-sensitive and SEARCH is not; for a single @ either works, but SEARCH also accepts wildcards (? and *), which bites when the delimiter is a literal question mark. Pitfall 2: an address without an @ makes FIND return #VALUE!, which propagates into LEFT and RIGHT; wrap the formula in IFERROR(…,"") when the export may contain phone numbers or blanks. Pitfall 3: a hard-coded count such as =LEFT(B2,12) passes on one row and fails on the next — the grader changes B2 and expects the split to follow. MID(B2,FIND("@",B2)+1,255) is a shorter way to say "everything after the @": asking for more characters than exist is harmless. In Excel 365, =TEXTSPLIT(B2,"@") returns both parts as a spilled array; to put each part in its own column use INDEX(TEXTSPLIT(B2,"@"),1) and INDEX(TEXTSPLIT(B2,"@"),2), because a spilled result cannot be filled down and leaves the second column without a formula of its own. Text to Columns (Data tab, delimiter "@") and Flash Fill (Ctrl+E) split interactively but produce static values; formulas keep following the source. Case: these functions preserve the capitalisation of the source; add LOWER() around the domain before counting domains, otherwise Gmail.com and gmail.com are two groups.

Otras formas válidas

  • =TEXTBEFORE(B2,"@") and =TEXTAFTER(B2,"@") — Excel 365 only
  • =MID(B2,FIND("@",B2)+1,255) — the domain via MID; the 255 just means "to the end"
  • =SUBSTITUTE(B2,C2&"@","") — the domain by removing the user part already computed in C2
  • =INDEX(TEXTSPLIT(B2,"@"),1) / =INDEX(TEXTSPLIT(B2,"@"),2) — Excel 365, one part per column

Errores frecuentes

Counting characters instead of finding the @: =LEFT(B2,10) returns the right user for B2 and the wrong one for every other row — the position of the @ changes with each address.

Cómo corregimos

Se acepta cualquier fórmula que produzca el resultado correcto, salvo que la tarea nombre una función: entonces otra función obtiene media puntuación. Comparamos los valores con una pequeña tolerancia y, en el texto, ignoramos mayúsculas y espacios. Un número correcto escrito a mano en lugar de una fórmula obtiene media puntuación. Las tareas de varias celdas obtienen la puntuación completa con el 100% de las celdas correctas y media puntuación desde el 50%. Cuando importa, también cambiamos una celda de entrada en una copia de tu hoja y comprobamos que tu fórmula se adapta.

Respuestas calculadas con las reglas de Excel 365 y comprobadas en nuestro corrector el 16 de noviembre de 2026. Autor: GridBelt team.

En estos programas

  • Excel for Data AnalystsDía 5
  • Excel for Administrative AssistantsDía 9
  • Excel for Sales and MarketingDía 5

Ejercicios relacionados

  • Extract category, year and serial from SKUPrincipiante, ~6 min
  • Clean padded, lower-case names with TRIM and PROPERIntermedio, ~6 min
  • Combine tags per product with TEXTJOINIntermedio, ~5 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Clean padded, lower-case names with TRIM and PROPER