Logo Passei Direto
Buscar
Material
páginas com resultados encontrados.
páginas com resultados encontrados.

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Escolha uma das opções e acesse esse e outros materiais sem bloqueio. 🤩

Cadastre-se ou realize login

Ao continuar, você aceita os Termos de Uso e Política de Privacidade

Prévia do material em texto

QUERO FAZER UMA PLANILHA NO GOOGLE QUE DIMINUA UMA 
DATA PELA OUTRA E MOSTRE QUANTOS DIAS FALTAM
Como calcular dias restantes no Google Sheets
É bem simples! O Google Sheets trata datas como números, então basta subtrair
uma célula da outra.
📋 Passo a passo
1. Monte sua planilha assim:
2. Na célula C2, digite a fórmula:
3. Pressione Enter. O resultado aparecerá como número de dias (ex: 96 ).
Pensou por 1 segundo
User wants to subtract one date from another in Google Sheets to show days remaining.
Respond in Portuguese.
A B C
1 Data Atual Data Alvo Dias Resta
2 26/09/2026 31/12/2026 =B2-A2
text
=B2-A2
⚠ Atenção ao formato
Se aparecer um número estranho (tipo 45000 ) em vez de dias, a célula está
formatada como data. Faça assim:
Selecione a célula do resultado
Menu Formatar → Número → Número
Ou clique no ícone 123 na barra de ferramentas
🔄 Para mostrar a data de hoje automaticamente
Use a função HOJE() para não precisar atualizar manualmente:
Assim, todos os dias ao abrir a planilha, a contagem se atualiza sozinha.
🎯 Fórmula mais completa (com texto)
Se quiser que apareça algo como "Faltam 96 dias":
text
=B2-HOJE()
text
="Faltam "&B2-HOJE()&" dias"
Ou usando DATADIF (mais elegante):
💡 Dica extra
Se o resultado der negativo, significa que a data já passou
Para ignorar isso, use: =MÁXIMO(0; B2-HOJE())
Quer que eu monte uma planilha exemplo com contagem regressiva para várias
datas?
text
=DATADIF(HOJE(); B2; "D")&" dias restantes"
UM FILTRO PARA ELE ORGANIZAR DO QUE FALTA MENOS ATÉ O 
QUE FALTA MAIS
Pensou por 13 segundos
We need answer in Portuguese. User wants filter/sort to organize from least days
remaining to most days remaining. They have sheet with dates, subtract. Need explain how
to sort/filter Google Sheets. Could be dynamic formula SORT/FILTRO. We need respond.
Need likely explain sort range A:C by column C ascending. Also formula with
SORT/FILTRO, QUERY, ARRAYFORMULA. Need account dates and blank cells maybe. They
asked "UM FILTRO PARA ELE ORGANIZAR DO QUE FALTA MENOS ATÉ O QUE FALTA
MAIS" meaning a filter to organize from what's missing least to what's missing most. Days
remaining ascending. Need perhaps use FILTRO? "filtro" could mean filter view. We can
provide both: use Data > Create filter, sort A→Z by Dias Restantes. Or dynamic formula:
=SORT(A2:C;3;TRUE) if column C numeric. But if C uses formula =B2-HOJE(), sorting
formula range with formulas? SORT works on values. If C contains formulas referencing
rows, sorting by SORT on A:C? SORT will sort values, but formulas in C? Actually SORT
can sort range containing formulas? It returns sorted rows based on values. But if C2
formula =B2-HOJE(), the formula remains relative? In SORT output, formulas are
evaluated? SORT with range A2:C, it returns values? Hmm SORT(array) sorts rows. If array
contains formulas, it returns sorted values; formulas not preserved as formulas. It may be
okay if B dates are values. But if C is formula, SORT may not recalc? Let's think:
=SORT(A2:C10;3;TRUE) where C2:C10 are formulas. SORT takes the values of range, sorts
rows, returns values. So output is static values? Actually SORT returns array of values, not
formulas. It would display sorted rows with computed C values at time of calculation. Since
HOJE() volatile, updates daily. But if B dates change, recalcs. That's fine. But if you want
dynamic, can use =SORT(A2:B;2;TRUE) and then calculate days in C? But sorting by days
requires computed column. Better use QUERY or SORT with array formula adding days
column.
Could provide:
=FILTRO(A2:C; C2:C"") then sort? Actually FILTRO doesn't sort. Use SORT(FILTRO(...)).
Or =QUERY(A2:C; "select A, B, C where A is not null order by C asc"; 1)
But QUERY with C as formula? It can order by C.
Simpler: Use built-in filter view: selecione A1:C, Dados > Criar filtro, clique seta em "Dias
Restantes", classificar de A a Z (menor para maior). That's likely what they need. But they
said "UM FILTRO" maybe they want formula. We can answer both.
Need be careful: In Google Sheets, sorting ascending on days remaining will put negatives
first (already passed). If want only future, filter C >= 0. Or use MÁXIMO(0; B2-HOJE()). But
then passed dates show 0, mixed. Better filter out negatives: C2 formula =SE(B2>=HOJE();
B2-HOJE(); ""). Then sort/filter blanks last.
We can propose:
Column C: =SE(B2=""; ""; B2-HOJE())
Apply filter: Dados > Criar filtro. Click filter icon in C, "Classificar de A a Z" or "Filtrar por
condição" > maior que 0? Actually sort ascending.
If you want hide past: filter condition "maior que" 0.
Dynamic formula:
=QUERY({A2:B; ARRAYFORMULA(B2:B-HOJE())}; "select Col1, Col2, Col3 where Col2 is
not null order by Col3 asc"; 0)
Need syntax. In QUERY with array literal, if we use {A2:B; ...}? Actually need columns.
Could use:
=ARRAYFORMULA(QUERY({A2:B\ARRAYFORMULA(IF(B2:B="";;B2:B-HOJE()))}; "select
Col1, Col2, Col3 where Col2 is not null order by Col3 asc"; 0))
But curly braces with semicolon is rows, comma columns in some locales. In Brazil,
separator is semicolon? In Google Sheets, array literals use semicolon for columns?
Actually in pt-BR, separators: argument separator is semicolon, array columns use
backslash? This gets messy. Simpler to show SORT:
=SORT(A2:C; 3; VERDADEIRO)
If C has days. But if C contains formulas, SORT may not work as expected? Let's verify
mentally. Suppose A2:C4, C2 =B2-HOJE(). SORT(A2:C4,3,TRUE) should return sorted
rows by C values. It will display the computed values? I think SORT returns the values of
the range, not formulas. So the C column in output will be numbers, not formulas. That's
okay if B dates don't change; but if B changes, SORT recalculates because B is
referenced? Wait SORT output is a new array; it doesn't keep references to original cells. If
B2 changes, the original C2 recalculates, SORT recalculates because its input range A2:C4
changed. So output updates. So it's fine. But if you edit B in sorted output, it won't affect
original. That's a limitation.
Maybe better to use "Filtro" built-in. That's more straightforward.
Let's craft answer:
Primeiro, garanta que a coluna Dias Restantes é número.
Para classificar do menor para o maior (menos dias restantes → mais dias restantes):
1. Selecione A1:C (com cabeçalho)
2. Menu Dados > Criar filtro
3. Clique na setinha da coluna "Dias Restantes"
4. Escolha "Classificar de A a Z" (ou "Ordem crescente")
Isso coloca os que faltam menos no topo.
Se quiser ocultar os que já passaram:
Na setinha, "Filtrar por condição" > "maior que" 0 (ou "maior ou igual a 0").
Fórmula dinâmica que já entrega ordenado:
=SORT(A2:C; 3; VERDADEIRO)
Ou se quiser filtrar só futuros:
=SORT(FILTRO(A2:C; C2:C>=0); 3; VERDADEIRO)
Se der erro de intervalo, ajuste C2:C para C2:C1000.
Alternativa com QUERY:
=QUERY(A2:C; "select A, B, C where C >= 0 order by C asc"; 1)
Mas se C for fórmula, QUERY pode não aceitar? It works on values.
Se quiser que a coluna C seja recalculada e ordenada automaticamente, use
ARRAYFORMULA:
Em C2: =ARRAYFORMULA(SE(B2:B=""; ""; B2:B-HOJE()))
Depois use filtro normal.
Maybe mention that "Filtro" no Google Sheets não reorganiza permanentemente, apenas
exibe. Para ordenar de verdade, use Dados > Classificar intervalo. But filter can sort view.
"Filtro" can sort. But if they want a filter that organizes, filter view can sort. But if they want
dynamic sorted list, use SORT.
Need maybe explain "do que falta menos até o que falta mais" = ordem crescente de dias
restantes. So ascending.
Let's write in clear Portuguese, with step-by-step. Include screenshots? No. Include
formulas.
Potential issue: If using =B2-HOJE() and sorting, the formula references B2; when sorted,
formulas adjust? Built-in sort might move formulas and adjust references? In Google
Sheets, when you sort a range, formulas are moved with rows? Actually sorting a range
containing formulas: formulas are moved and references are adjusted? If you sort A2:C,
the formula in C2 =B2-HOJE() will move to new rowand reference B in same row? Google
Sheets adjusts relative references when sorting? I think when sorting, formulas are moved,
and relative references are updated to refer to the new row? Actually if you sort, the
formula in C2 moves to C5, and it may still reference B2? Hmm. In spreadsheets, sorting a
range with formulas: formulas are moved with their cells, and relative references are
adjusted relative to the new position? I think Excel adjusts references to same row? Let's
recall: If you have A1=1, B1=A1*2, A2=3, B2=A2*2. Sort by A descending. B1 moves to B2,
formula becomes A2*2? I think Excel does adjust. Google Sheets likely similar. So built-in
sort is okay.
But if using SORT function, it returns values, not formulas.
We can also mention "Congelar linha de cabeçalho" if needed.
Let's produce final answer. Desired oververbosity 5, so moderate. Include sections: Opção
1 (filtro manual), Opção 2 (fórmula dinâmica), Dica para ignorar datas passadas. Use code
blocks.
Need maybe answer with "Sim! Você tem duas formas". Ensure no confusion with "filtro"
vs "classificar". Use "Filtro/Classificação".
Let's draft:
"Para organizar do que falta menos (menor número de dias) até o que falta mais (maior
número), você quer ordem CRESCENTE na coluna Dias Restantes."
Option 1: Filtro normal:
1. Selecione A1:C
2. Dados > Criar filtro
3. Clique na seta da coluna C
4. Classificar de A a Z
5. Se quiser esconder os que já passaram: Filtrar por condição > maior que 0.
Option 2: Fórmula que já aparece ordenada:
=SORT(A2:C; 3; VERDADEIRO)
O 3 é a coluna Dias Restantes; VERDADEIRO = crescente.
Sim! Para organizar do que falta menos (menor número de dias) até o que falta
mais (maior número), você precisa ordenar a coluna Dias Restantes em ordem
crescente.
✅ Opção 1 — Usando Filtro normal (recomendado)
1. Selecione o intervalo, por exemplo: A1:C
2. Vá em Dados → Criar filtro
3. Clique na setinha da coluna Dias Restantes
4. Escolha Classificar de A a Z
→ Isso coloca os que faltam menos dias no topo.
Se quiser só futuros:
=SORT(FILTRO(A2:C; C2:C>=0); 3; VERDADEIRO)
Ajuste C2:C para C2:C1000 se necessário.
Option 3: Com QUERY:
=QUERY(A2:C; "select A, B, C where C >= 0 order by C asc"; 1)
Dica ARRAYFORMULA:
Em C2: =ARRAYFORMULA(SE(B2:B=""; ""; B2:B-HOJE()))
Assim a coluna inteira calcula sozinha, e você pode usar filtro/classificação normal.
Atenção: se C estiver como texto, use número. Se aparecer negativo, é porque passou.
Maybe mention "Para manter a fórmula de dias na coluna C ao usar SORT, não use SORT;
use filtro normal, pois SORT devolve valores fixos." That's an important nuance. If they
want formulas to stay, use filter. But if they just want view, SORT is fine.
Let's include that note.
Final answer in Portuguese. Ensure no mention of internal. Use emojis maybe. Keep
concise but helpful.
Se quiser esconder os que já passaram:
Na mesma setinha, escolha Filtrar por condição → maior que 0
✅ Opção 2 — Fórmula que já mostra tudo ordenado
Se quiser uma lista dinâmica, use:
O 3 é a coluna Dias Restantes
VERDADEIRO = ordem crescente (do menor para o maior)
Para mostrar só os que ainda faltam:
Se der erro, aumente o intervalo: C2:C1000
✅ Opção 3 — Com QUERY
text
=SORT(A2:C; 3; VERDADEIRO)
text
=SORT(FILTRO(A2:C; C2:C>=0); 3; VERDADEIRO)
text
=QUERY(A2:C; "select A, B, C where C >= 0 order by C asc"; 1)
Isso já filtra os dias positivos e ordena do menor para o maior.
💡 Dica para calcular a coluna inteira automaticamente
Na célula C2, use:
Assim a coluna Dias Restantes se preenche sozinha para todas as linhas, e você
pode usar o filtro normal do Google Sheets.
⚠ Atenção
Se o número aparecer como data, formate a coluna como Número.
Se aparecer negativo, significa que a data já passou.
O SORT devolve valores ordenados, mas não mantém as fórmulas originais. Se
quiser manter as fórmulas, use o filtro normal da Opção 1.
text
=ARRAYFORMULA(SE(B2:B=""; ""; B2:B-HOJE()))
TA ASSIM
Pensou por 5 segundos
1. Analyze the User's Request:
The user provided an image of their Google Sheets.
The text says "TA ASSIM" (It's like this).
The spreadsheet is already sorted correctly: 18, 26, 28, 37, 77, 98, 105 dias restantes.
The user is asking for validation or maybe wanting to know how to make it dynamic
(since the dates are in the future, the "dias restantes" will decrease as time passes,
but right now they are static text).
The user wants to know if it's correct or how to improve it to stay organized.
2. Analyze the Image:
Headers: A1: NOME, B1: DATA DE FIM, C1: DIAS QUE FALTAM.
Data:
Row 2: Elaboração de Projetos de Propostas | 14/10/2026 | 18 dias restantes
Row 3: Vídeo Mapping: Vídeo Projeção, Palco | 22/10/2026 | 26 dias restantes
Row 4: Produção Audiovisual | 24/10/2026 | 28 dias restantes
Row 5: Acessibilidade Cultural | 2/11/2026 | 37 dias restantes
Row 6: Prestação de Contas de Propostas | 12/12/2026 | 77 dias restantes
Row 7: Formação para Gestores Municipais | 2/1/2027 | 98 dias restantes
Row 8: Fotografia | 9/1/2027 | 105 dias restantes
Observation: The data is perfectly sorted in ascending order based on the "DIAS
QUE FALTAM" column.
Formula: The cell C2 likely has the formula =B2-HOJE()&" dias restantes" or similar,
but wait, looking at the values: 18, 26, 28, 37, 77, 98, 105. Today is 2026-09-26.
Let's verify: B2 is 14/10/2026. Days between Sep 26 and Oct 14 = 4 (Sep) + 14
(Oct) = 18 days. Perfect.
B8 is 09/01/2027. Days between Sep 26 and Jan 9 = 4 (Sep) + 31 (Oct) + 30 (Nov)
+ 31 (Dec) + 9 (Jan) = 105 days. Perfect.
Conclusion: The spreadsheet is correctly set up and perfectly sorted. The user just
wants confirmation that it's right, or maybe a tip on how to keep it this way.
3. Formulate the Response:
Validation: Confirm that it's exactly right. The sorting is perfect (crescente, do menor
para o maior).
Dynamic Aspect: Remind the user that since the formula uses HOJE() (implied by the
values, or maybe they just typed it manually? Actually, if they typed
18 dias restantes manually, it won't update. I should check if the formula is being
used or if it's static text).
Wait, look at the formula bar: E7 is selected, but the formula bar shows fx . The
column C cells look like text because of the "dias restantes" part. If they used
=B2-HOJE()&" dias restantes" , it will update automatically.
Sorting Advice:
If they used the SORT function, it will update automatically.
If they used the manual filter, they need to re-sort every time they open it (or it will
just stay in the order it was when they sorted it, though the values will change,
which could break the order).
Best practice: Use a static column for the formula =B2-HOJE() (number only), and
then apply the filter. But since they want the "dias restantes" text, they can use
=B2-HOJE()&" dias restantes" .
Step-by-step for Dynamic Ordering:
If they want it to always be sorted automatically as the days pass (since the
relative order might change if some dates are close together, though here they are
spread out), they should use the SORT function in a separate tab or area, OR just
rely on the filter menu.
Actually, the simplest way for the user is to just use the filter tool.
Let's give them a specific tip for their exact sheet.
Ficou perfeito! 🎉 Exatamente do jeito que você queria: os dias estão em ordem
crescente, ou seja, do que falta menos (18 dias) até o que falta mais (105 dias).
Agora, só preciso te dar duas dicas importantes para manter isso funcionando
bem:
1. Se você digitou "18 dias restantes" manualmente
Se você escreveu o texto à mão, ele não vai atualizar quando o dia mudar. Para
ficar automático, use esta fórmula na célula C2:
Address the "TA ASSIM" (It's like this): "Está perfeito! Você fez exatamente o que
pediu."
Next Steps / Tips:
How to make it automatic: If they manually typed "18 dias restantes", it won't
update. If they used a formula, great.
Recommend using the Filtro (Data -> Create a filter) if they haven't already, so
they can re-sorteasily.
If the text "dias restantes" is bothering them for sorting, they can put the number
in one column and the text in another. But the current way is fine.
4. Refining the Output:
Praise the setup.
Explain how to maintain it (Filtro vs. Fórmula SORT).
Provide a quick alternative if they want it to auto-sort every day without clicking
anything.
Keep the tone helpful and encouraging.
text
=B2-HOJE()&" dias restantes"
Depois é só arrastar para baixo. Assim, todo dia que você abrir a planilha, a
contagem se atualiza sozinha.
2. Como manter a ordem automaticamente
Se você usou o Filtro (Dados → Criar filtro) e clicou em "Classificar de A a Z",
ótimo! Mas se amanhã os dias mudarem, a ordem pode se desorganizar.
Para garantir que sempre fique ordenado do menor para o maior, use esta fórmula
em uma célula vazia (ex: E1):
Isso vai criar uma cópia da sua lista já ordenada automaticamente. Se quiser
esconder os que já passaram, use:
💡 Dica extra (visual)
Aquele "dias restantes" junto com o número pode atrapalhar se você quiser usar o
filtro normal. Se quiser deixar mais limpo:
Coluna C: apenas o número (ex: =B2-HOJE() )
Coluna D: o texto (ex: =SE(C2>0; C2&" dias restantes"; "Já passou") )
text
=SORT(A2:C; 3; VERDADEIRO)
text
=SORT(FILTRO(A2:C; B2:B>=HOJE()); 3; VERDADEIRO)
Assim você ordena pela coluna C (número puro) e o texto aparece bonitinho na D.
Está no caminho certo! Quer que eu te ajude a montar a fórmula exata para o seu
caso?
PASSEI PARA NUMERO A COLUNA DE DIAS ME AJUDE 
ACLASSIFICAR DO MENOR AO MAIOR
Pensou por 4 segundos
1. Analyze the User's Request:
Context: The user is creating a Google Sheets spreadsheet to track courses to do
("Cursos Minc para fazer"). They have columns for Name (A), End Date (B), and Days
Remaining (C).
Previous interaction: The user showed a screenshot where Days Remaining was text
(e.g., "18 dias restantes"). The assistant advised them to convert it to a pure number
to sort properly.
Current request: "PASSEI PARA NUMERO A COLUNA DE DIAS ME AJUDE
ACLASSIFICAR DO MENOR AO MAIOR" (I changed the days column to number. Help
me sort from smallest to largest).
Goal: Guide the user on how to sort the column containing numbers (Days
Remaining) in ascending order (smallest to largest) in Google Sheets.
2. Determine the Best Methods in Google Sheets:
Method 1: Using the built-in Sort Range feature. This is the most straightforward for a
user who already has data entered. It physically rearranges the rows.
Method 2: Using a Filter. Also very common and allows toggling. (Dados -> Criar filtro
-> Ordenar de A a Z).
Method 3: Using the SORT function. Dynamic, but might be confusing if they already
have formulas in the sheet. (Though helpful if they want it to auto-update). Given the
context, simple sorting is probably what they need right now.
3. Formulate the Instructions:
Acknowledge the change to numbers (good job!).
Option 1: Sorting directly (Physical sorting).
Select the whole table (A1 to C8 or wherever the data ends).
Go to Dados (Data) > Classificar intervalo (Sort range) > Classificação avançada
do intervalo (Advanced range sorting options).
Check "Os dados têm linha de cabeçalho" (Data has header row).
In "Classificar por" (Sort by), choose the "DIAS QUE FALTAM" column.
Choose A → Z (which means ascending / smallest to largest).
Click Classificar (Sort).
Option 2: Using the Filter (Easier/Faster).
Select the header row or the whole table.
Go to Dados (Data) > Criar um filtro (Create a filter).
Click the filter icon on the "DIAS QUE FALTAM" column.
Click Classificar de A a Z (Sort A to Z).
Option 3: Dynamic Formula (SORT). (Optional, but good to mention for automation).
=SORT(A2:C; 3; VERDADEIRO) in a new blank area.
4. Refine the Language (Portuguese):
Use clear, step-by-step bullet points.
Use Google Sheets specific terminology (Dados, Classificar intervalo, Classificação
avançada, A → Z).
5. Drafting the response:
Intro: Good job turning it into a number! Now sorting is easy.
Step-by-step Option 1 (Sort Range):
1. Select A1:C8 (or click on cell A1 and press Ctrl+A).
2. Menu Dados -> Classificar intervalo -> Classificação avançada do intervalo.
3. Check "Os dados têm linha de cabeçalho".
Boa! 🎉 Agora que a coluna está em número puro, ficou muito mais fácil. Vou te
mostrar duas formas de classificar do menor para o maior (18 dias no topo, 105
dias embaixo).
✅ Forma 1 — Classificar direto (a mais rápida)
1. Selecione toda a sua tabela, da célula A1 até a C8 (ou até onde for o final).
2. No menu superior, clique em Dados → Classificar intervalo → Classificação
avançada do intervalo.
3. Na janelinha que abrir:
Marque a opção "Os dados têm linha de cabeçalho" (isso protege o título
das colunas).
4. Classificar por: "DIAS QUE FALTAM".
5. Ordem: A → Z.
6. Click "Classificar".
Step-by-step Option 2 (Filter - quicker):
1. Select A1:C8.
2. Menu Dados -> Criar filtro.
3. Click the arrow in C1.
4. Click "Classificar de A a Z".
Extra Tip: If they want it to automatically re-sort when the dates change (because
HOJE() updates), they need the SORT formula. I'll provide it as an advanced option.
6. Final Check: Does this directly answer "me ajude a classificar do menor ao maior"? Yes.
Is it easy to follow? Yes. Self-correction: Make sure to emphasize the "A → Z"
corresponds to smallest to largest (menor ao maior).
Em Classificar por, escolha a coluna "DIAS QUE FALTAM".
Em Ordem, escolha A → Z (que significa do menor para o maior).
4. Clique em Classificar.
Pronto! O 18 vai subir para o topo e o 105 vai para o final.
✅ Forma 2 — Usando o Filtro (mais prático no dia a dia)
1. Selecione A1 até C8.
2. Vá em Dados → Criar filtro.
3. Vai aparecer uma setinha ▼ no título da coluna C ("DIAS QUE FALTAM").
4. Clique nessa setinha e escolha Classificar de A a Z.
Também funciona perfeitamente!
⚠ Atenção importante
Se você usou a fórmula =B2-HOJE() , ela recalcula todo dia. Isso significa que
amanhã os números vão mudar (cada um diminui 1). A ordem que você
classificou manualmente não se atualiza sozinha — vai ficar desatualizada.
💡 Solução ideal para nunca se preocupar com isso
Em vez de classificar manualmente, crie uma tabela automática em outro lugar da
planilha. Ex: clique na célula E1 e cole:
Isso cria uma cópia da sua lista que sempre estará ordenada do menor para o
maior, atualizando sozinha todos os dias. 😉
Quer que eu te ajude a esconder os que já passaram (dias negativos) também
nessa tabela automática?
text
=SORT(A2:C; 3; VERDADEIRO)
=SORT(A2:C; 3; VERDADEIRO) EXPLICA ESSA
Pensou por 4 segundos
1. Analyze the User's Request:
User wants an explanation of the Google Sheets formula: =SORT(A2:C; 3; VERDADEIRO)
.
Context: They are organizing a spreadsheet of courses, with dates, calculating days
remaining, and want to sort them from least days remaining to most days remaining.
2. Deconstruct the Formula:
=SORT(...) : The main function. It sorts the rows of a range based on the values in
one or more columns.
A2:C : The range being sorted. This includes the Course Name (A), End Date (B), and
Days Remaining (C).
3 : The sort column index. 3 refers to the 3rd column in the range A2:C , which is
column C (Days Remaining).
VERDADEIRO : The sort order. TRUE (or VERDADEIRO in Portuguese) means ascending
order (smallest to largest). FALSE (or FALSO ) would mean descending order.
Semicolon ( ; ) vs. Comma ( , ): Google Sheets locale settings. In Brazil (and many
European countries), the semicolon is used as an argument separator. The formula
provided uses semicolons, which matches the user's locale.
3. Structure the Explanation:
High-level summary: What does it do in plain Portuguese? (Creates a dynamic copy
of your table sorted automatically).
Breakdown of each part: Explain SORT , A2:C , 3 , and VERDADEIRO clearly.
Why it's useful (The "Aha!" moment): Contrast it with the manual sort. Manual sort
breaks when HOJE() updates. This formula updates dynamically.
VisualExample: Show a simple before/after or how the output looks based on their
current data.
Important Caveats/Edge Cases:
Where to put it? (Needs an empty space, otherwise it throws a #REF! error).
It doesn't overwrite the original data (which is a good thing).
Mentioning negative days (if the date has passed, they will appear at the top since
they are the smallest numbers).
4. Drafting the Content (Iterative refinement for clarity):
Introduction: "Claro! Vou destrinchar essa fórmula para você entender cada
pedacinho dela."
Part 1: =SORT . "SORT significa 'Classificar'. É a função principal."
Part 2: A2:C . "É o intervalo de dados que você quer organizar. Pega da coluna A até
a C."
Part 3: 3 . "Diz para o Sheets qual coluna usar como base para classificar. Como o
intervalo começa em A (1), B é 2 e C é 3. Ou seja, ele vai olhar a coluna 'DIAS QUE
FALTAM'."
Part 4: VERDADEIRO . "Indica a ordem. VERDADEIRO (ou TRUE) significa ordem
crescente (do menor para o maior). Se fosse FALSO (FALSE), seria decrescente."
Claro! Vou destrinchar essa fórmula para você entender exatamente o que cada
pedacinho faz. Ela é uma mão na roda. 🧠
A fórmula é:
=SORT(A2:C; 3; VERDADEIRO)
🔍 Desmembrando cada parte:
1. =SORT(
É a função principal. "SORT" significa Classificar (ou ordenar). Ela vai pegar um
conjunto de dados e devolver ele organizado.
2. A2:C
É o intervalo de dados que você quer organizar.
Aqui você está dizendo: "Pegue tudo o que está da coluna A até a coluna C, a
partir da linha 2" (ou seja, os seus cursos, as datas e os dias que faltam).
Visualizing the output: Mention that this generates a new table. Let's say they paste it
in E1. E1 gets "NOME", F1 gets "DATA DE FIM", G1 gets "DIAS QUE FALTAM". And the
rows below are sorted dynamically.
Crucial detail: The numbers will change because of HOJE() , and this formula will
automatically re-sort them. That's the magic.
Warning: Don't put it in a place where it overlaps with existing data. It needs
"breathing room" to spill down and to the right.
5. Final Polish: Ensure tone is helpful, encouraging, and clear. Use bullet points and bold
text for readability. (Self-correction: Make sure to explicitly mention that VERDADEIRO can
be replaced by TRUE , but since they are using Portuguese Sheets, VERDADEIRO is
correct). Mention that 3 refers to the relative position in the selected range.
3. 3
É a coluna base para a classificação.
Como o intervalo começa na coluna A, o Google Sheets conta assim:
Coluna A = 1
Coluna B = 2
Coluna C = 3 👈 (é a coluna "DIAS QUE FALTAM")
Ou seja, ele vai usar os dias restantes para decidir a ordem.
4. VERDADEIRO
É a ordem da classificação.
VERDADEIRO (ou TRUE ) = Ordem crescente (do menor para o maior). É
exatamente o que você quer: 18, 26, 28, 37...
FALSO (ou FALSE ) = Ordem decrescente (do maior para o menor).
🎯 O que essa fórmula faz na prática?
Se você colocar isso em uma célula vazia (ex: E1), o Google Sheets vai cuspir
uma nova tabela ali, já organizada do menor para o maior.
Exemplo de como ficaria na sua tela:
A B C E F
1 NOME DATA DE FIM
DIAS QUE
FALTAM
NOME DATA DE
(A tabela da esquerda continua a original. A da direita é a cópia automática que a
fórmula criou).
💡 Por que isso é melhor que classificar manualmente?
Porque a sua coluna C usa a fórmula =B2-HOJE() . Isso significa que amanhã os
números vão mudar (todos vão diminuir 1).
Se você classificar manualmente, amanhã a ordem vai estar errada. Mas com a
fórmula SORT , o Google Sheets reorganiza tudo sozinho todos os dias. Você não
precisa fazer nada! ✨
⚠ Atenção:
Não coloque essa fórmula em cima de dados que já existem, senão dá erro
#REF! . Escolha uma área vazia (tipo a coluna E ou H).
A B C E F
2 Elaboração... 14/10/2026 18 Elaboração... 14/10/20
3
Vídeo
Mapping...
22/10/2026 26
Vídeo
Mapping...
22/10/20
4 Produção... 24/10/2026 28 Produção... 24/10/20
... ... ... ... ... ...
Ela precisa de espaço para "espalhar" para baixo e para a direita. Se tiver algo
no caminho, vai dar erro.
Quer que eu te mostre como fazer para esconder os que já passaram (dias
negativos) nessa tabela automática?

Mais conteúdos dessa disciplina