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. Date functions

EOMONTH practice: due dates for 60 invoices with month-end terms

  • Intermediário
  • ~6 min
  • Date functions

Enunciado em inglês

Accounts receivable issued 60 invoices between 2026-01-07 and 2026-10-06. Payment terms are "end of month plus N months": an invoice is due on the last day of the month that lies N months after the invoice month — 25 customers pay at the end of the following month, 25 two months out, 10 three months out. Invoice INV-2026-0401, dated 2026-01-07 with 3-month terms, is therefore due on 2026-04-30. Compute every due date in F2:F61 and make the column readable as dates.

O que você precisa fazer

  1. 1Click F2 and type =EOMONTH(C2,E2): the first argument is the start date, the second how many months to move — the result is the last day of that month. Press Enter.
  2. 2F2 shows 46142, not a date: EOMONTH returns the serial number and the cell keeps its General format. Fill F2 down to F61 first (double-click the fill handle, or select F2:F61 and press Ctrl+D / ⌘D).
  3. 3Select F2:F61 and apply a date format: Format Cells (Ctrl+1 on Windows, ⌘1 on Mac) → Date, or Ctrl+Shift+# (Windows) / Control+Shift+# (Mac) for the default date format. F2 now shows the date 2026-04-30, in whichever date format you picked.
  4. 4Compare with EDATE: =EDATE(C2,E2) would give 2026-04-07 — the same day 3 month(s) later, not the month end. =EOMONTH(EDATE(C2,E2),0) brings it back to 2026-04-30.

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 F2, compute the due date as the last day of the month that is E2 months after the invoice date in C2 — EOMONTH, or EDATE wrapped in EOMONTH — then fill down to F61.
  2. Não verificadoFormat F2:F61 as dates (any date format, for example yyyy-mm-dd) so the serial numbers display as calendar dates.

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 60 linhas em uma planilha, uma célula de resposta, cerca de 6 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

  • F2=EOMONTH(C2,E2)

EOMONTH(start, months) returns the last day of the month that lies the given number of months after the start date — EOMONTH(C2,1) for a March invoice is 30 April, whatever day in March the invoice carries. Because the terms differ by customer, the months argument reads column E instead of a typed number, and the formula fills down unchanged. Date functions return serial numbers; the cell only looks like a date once it carries a date number format, which is why the second step exists.

Pitfall 1: EOMONTH, EDATE, DATE and WORKDAY all return bare serials in a General cell (46142 instead of 2026-04-30) — Excel auto-formats a plain =C2+30, but not function results; always format the answer column. Pitfall 2: EDATE(C2,1) is "same day next month", not the month end, and it clips 31 January to 28 February; for month-end terms use EOMONTH, for "net 30" use C2+30, for "30 days end of month" use EOMONTH(C2,0)+30. Pitfall 3: a start date stored as text ("2026-03-14" typed with an apostrophe or imported from CSV) makes EOMONTH return #VALUE!; convert with DATEVALUE first. Negative months look backwards (EOMONTH(C2,-1) is the end of the previous month) and EOMONTH(C2,0) is the end of the current month — handy for period-end accruals. The classic pre-EOMONTH idiom DATE(YEAR(C2),MONTH(C2)+E2+1,0) still works everywhere: day 0 of the following month is the last day of the target month. Version note: all of these functions exist in every Excel version; EOMONTH was once an Analysis ToolPak add-in function and is built in since Excel 2007.

Outras formas que funcionam

  • =EOMONTH(EDATE(C2,E2),0) — move N months with EDATE, then jump to the month end
  • =DATE(YEAR(C2),MONTH(C2)+E2+1,0) — day 0 of the following month, no EOMONTH needed
  • =EOMONTH(C2,E2)+0 — identical value; some people add +0 to force a number before formatting

Erros comuns

Using EDATE alone: =EDATE(C2,E2) returns 2026-04-07 for INV-2026-0401 — the same day 3 month(s) later — instead of the month end 2026-04-30 the terms demand.

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.

Nestes programas

  • Excel for Data AnalystsDia 3
  • Excel for Administrative AssistantsDia 9
  • Excel for Accounting and BookkeepingDia 4

Exercícios relacionados

  • Days to deadline and tenure in years (TODAY, DATEDIF)Iniciante, ~6 min
  • Working days to resolve tickets (NETWORKDAYS)Intermediário, ~7 min
  • Turn text dates into real dates and group by monthAvançado, ~12 min

Referência da função

Documentação oficial

Próximo exercício

Working days to resolve tickets (NETWORKDAYS)