Pular para o conteúdo
GridBelt
  • Teste de Excel
  • Prática
  • Programas
  • Preços
Entrar
Começar o teste gratuito
  • Teste de Excel
  • Prática
  • Programas
  • Preços
EntrarCriar conta
Começar o teste gratuito
GridBelt

Pratique Excel no seu navegador.

Teste de Excel

  • Nível 1: Iniciante
  • Nível 2: Intermediário
  • Nível 3: Avançado
  • Teste de Excel em 7 dias
  • Ranking
  • Teste de Excel para entrevista
  • Avaliação de Excel da Indeed

Prática

  • Todos os exercícios
  • Programas
  • Para iniciantes

Guias

  • Fórmulas do Excel
  • Atalhos do Excel

Empresa

  • Sobre nós
  • Preços
  • Como corrigimos

© GridBelt. Todos os direitos reservados.

  • Política de Privacidade
  • Termos de Uso
  • Política de Reembolso

Excel é uma marca comercial da Microsoft Corporation. Indeed, TestGorilla, SHL e outras marcas pertencem aos seus respectivos proprietários. O GridBelt é um site de prática independente e não tem afiliação com Microsoft, TestGorilla, SHL ou Indeed, nem é endossado ou patrocinado por eles.

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

TEXTJOIN practice: one tag list per product from 5 columns

  • Intermediário
  • ~5 min
  • Text functions

Enunciado em inglês

The web-shop catalogue stores up to 5 tags per product in separate columns (C to G), and the 40 products use the slots unevenly: 31 rows have empty slots between tags, 6 use all five, 7 have a single tag. The storefront import wants one field per product with the tags separated by a comma and a space — for Standing desk that is "indoor, eco, fragile". Build that field in H2:H41 without producing stray separators for the empty slots.

O que você precisa fazer

  1. 1Click H2 and type =TEXTJOIN(", ",TRUE,C2:G2): the first argument is the delimiter, TRUE means "ignore empty cells", and C2:G2 is the range of tag slots.
  2. 2Press Enter — H2 shows indoor, eco, fragile. Compare with what =C2&", "&D2&", "&E2&", "&F2&", "&G2 would give: "indoor, , eco, , fragile", with separators for the empty slots.
  3. 3Fill H2 down to H41 (double-click the fill handle, or select H2:H41 and press Ctrl+D on Windows / ⌘D on Mac).
  4. 4Spot-check a product with a single tag — its cell must contain just the tag, no comma.

Células de resposta

Correção

Digite sua fórmula na grade, pressione Enter e depois clique em Verificar. Avaliamos o valor de cada célula de resposta e a fórmula por trás dele.

Tarefas

  1. Não verificadoIn H2, use TEXTJOIN to combine the tags in C2:G2 with ", " as the delimiter and empty slots ignored, then fill down to H41.

Recomendamos um computador para as tarefas de planilha. A planilha rola dentro desta caixa.

StartInsertFormulasDataView
A1fxPreparando sua pasta de trabalho…
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

Digite sua fórmula na planilha e depois verifique.

Sobre este exercício

Um conjunto de dados de 40 linhas em uma planilha, uma célula de resposta, cerca de 5 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

  • 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.

Outras formas que funcionam

  • =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

Erros comuns

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".

Como corrigimos

Qualquer fórmula que produza o resultado certo é aceita, a menos que a tarefa cite uma função: nesse caso, outra função vale metade da pontuação. Comparamos os valores com uma pequena tolerância e ignoramos maiúsculas e espaços no texto. Um número certo digitado à mão em vez de uma fórmula vale metade da pontuação. Tarefas com várias células valem a pontuação integral com 100% das células certas e metade a partir de 50%. Quando faz diferença, também mudamos uma célula de entrada em uma cópia da sua planilha e verificamos se sua fórmula acompanha.

Respostas calculadas com as regras do Excel 365 e verificadas no nosso corretor em 16 de novembro de 2026. Autor: GridBelt team.

Exercícios relacionados

  • Full name with CONCAT or &Iniciante, ~4 min
  • Split email into user and domain (FIND/LEFT/RIGHT or TEXTBEFORE/TEXTAFTER)Intermediário, ~7 min
  • Clean padded, lower-case names with TRIM and PROPERIntermediário, ~6 min

Referência da função

Documentação oficial

Próximo exercício

Days to deadline and tenure in years (TODAY, DATEDIF)