Sobre este ejercicio
Un conjunto de datos de 40 filas en una hoja, una celda de respuesta, unos 5 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
- H2
=TEXTJOIN(", ",TRUE,C2:G2)
TEXTJOIN takes a delimiter once, a flag that says whether empty cells are skipped, and then the cells to join — so one short formula replaces a chain of & operators with a separator between every pair. With ignore_empty set to TRUE the blank slots simply disappear: row 2 gives "indoor, eco, fragile" instead of "indoor, , eco, , fragile". The range C2:G2 is relative, so filling the formula down moves it to C3:G3, C4:G4 and so on.
Pitfall 1: TEXTJOIN(", ",FALSE,…) or CONCAT(C2,", ",D2,…) keep a separator for every slot and produce ", ," runs and trailing commas; cleaning those afterwards with SUBSTITUTE is fragile — use TRUE. Pitfall 2: a cell that looks empty but holds a formula returning "" counts as empty for TEXTJOIN (good), while a single space " " does not — TRIM the sources if the import pads blanks with spaces. Pitfall 3: TEXTJOIN returns #VALUE! once the result exceeds 32,767 characters — irrelevant for tags, relevant when joining whole columns of comments. Version note: TEXTJOIN and CONCAT arrived with Excel 2019 / 365; in Excel 2016 and earlier the only option is =C2&IF(D2<>"",", "&D2,"")&… or a helper column. The reverse operation is TEXTSPLIT(H2,", ") (Excel 365 only); for a conditional join — only tags of a given type — combine TEXTJOIN with FILTER: =TEXTJOIN(", ",TRUE,FILTER(C2:G2,C2:G2<>"eco")). Multiple delimiters are allowed: TEXTJOIN({", "," and "},TRUE,…) alternates them, handy for "a, b and c" sentences.
Otras formas válidas
- =TEXTJOIN(", ",1,C2:G2) — 1 is accepted for TRUE
- =TEXTJOIN(", ",TRUE,C2,D2,E2,F2,G2) — the slots listed individually
- =TEXTJOIN(", ",TRUE,FILTER(C2:G2,C2:G2<>"")) — Excel 365; explicit filter instead of ignore_empty
Errores frecuentes
Setting ignore_empty to FALSE (or chaining the slots with &): the empty slots become extra separators and row 2 reads "indoor, , eco, , fragile" instead of "indoor, eco, fragile".
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.