À propos de cet exercice
Un jeu de données de 100 lignes sur une feuille, une cellule de réponse, environ 4 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.
Comment le résoudre
- D2
=B2&" "&C2
Joining text is called concatenation: the & operator (or the CONCAT function) returns the pieces written one after another, so =B2&" "&C2 yields the first name, then a space, then the last name. The space has to be a text literal in quotation marks — without it the names run together as one word. Because B2 and C2 are relative references, filling the formula down shifts them to B3/C3, B4/C4 and so on, producing all 100 full names from one formula.
Pitfall 1: =B2&C2 looks almost right and gives "GabrielFlores" — a missing separator is the most common concatenation error, and it is invisible until someone reads the badge. Pitfall 2: concatenating a number or a date converts it to plain text and drops its formatting (a start date becomes 46205); wrap such values in TEXT(F2,"yyyy-mm-dd") first. Pitfall 3: stray spaces in the source ("Olivia " with a trailing blank) survive concatenation and produce double spaces — clean the inputs with TRIM when the export is dirty. CONCAT (Excel 2019 and 365) replaces CONCATENATE and additionally accepts ranges (=CONCAT(B2:C2) joins both cells with no separator); CONCATENATE still works everywhere for compatibility. TEXTJOIN(" ",TRUE,B2:C2) is the range-friendly form with a delimiter and skips empty cells — useful when a middle-name column is often blank. For "Last, First" sorting lists, swap the order: =C2&", "&B2.
Autres méthodes valables
- =CONCAT(B2," ",C2) — the function form (Excel 2019 and 365)
- =CONCATENATE(B2," ",C2) — legacy function, works in every version
- =TEXTJOIN(" ",TRUE,B2:C2) — delimiter once, skips blanks (Excel 2019 and 365)
Erreurs fréquentes
Leaving out the space: =B2&C2 returns "GabrielFlores". The separator must be its own text piece, " ", between the two references.
Comment nous corrigeons
Toute formule qui produit le bon résultat est acceptée, sauf si la tâche nomme une fonction : une autre fonction rapporte alors la moitié des points. Nous comparons les valeurs avec une petite tolérance et ignorons la casse et les espaces dans le texte. Un nombre correct saisi à la main au lieu d’une formule rapporte la moitié des points. Les tâches sur plusieurs cellules rapportent tous les points avec 100 % de cellules justes, la moitié à partir de 50 %. Lorsque c’est pertinent, nous modifions aussi une cellule d’entrée sur une copie de votre feuille et vérifions que votre formule suit.
Réponses calculées selon les règles d’Excel 365 et vérifiées dans notre correcteur le 16 novembre 2026. Auteur : GridBelt team.