Aller au contenu
GridBelt
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecter
Commencer le test gratuit
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecterCréer un compte
Commencer le test gratuit
GridBelt

Entraînez-vous sur Excel dans votre navigateur.

Test Excel

  • Niveau 1 : Débutant
  • Niveau 2 : Intermédiaire
  • Niveau 3 : Expert
  • Test Excel en 7 jours
  • Classement
  • Test Excel en entretien d’embauche
  • Évaluation Excel d’Indeed

Exercices

  • Tous les exercices
  • Programmes
  • Pour débutants

Guides

  • Formules Excel
  • Raccourcis Excel

Entreprise

  • À propos
  • Tarifs
  • Comment nous corrigeons

© GridBelt. Tous droits réservés.

  • Politique de confidentialité
  • Conditions d’utilisation
  • Politique de remboursement

Excel est une marque commerciale de Microsoft Corporation. Indeed, TestGorilla, SHL et les autres marques sont la propriété de leurs détenteurs respectifs. GridBelt est un site d’entraînement indépendant ; il n’est affilié ni à Microsoft, ni à TestGorilla, ni à SHL, ni à Indeed, et n’est ni cautionné ni sponsorisé par ces sociétés.

  1. Exercices
  2. /
  3. Date functions

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

  • Intermédiaire
  • ~6 min
  • Date functions

Énoncé en anglais

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.

Ce que vous devez faire

  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.

Cellules de réponse

Correction

Saisissez votre formule dans la grille, appuyez sur Enter, puis cliquez sur Vérifier. Nous corrigeons la valeur de chaque cellule de réponse et la formule qui la produit.

Tâches

  1. Non vérifiéIn 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. Non vérifiéFormat F2:F61 as dates (any date format, for example yyyy-mm-dd) so the serial numbers display as calendar dates.

Ordinateur recommandé pour les tâches dans la feuille de calcul. La feuille défile à l’intérieur de ce cadre.

StartInsertFormulasDataView
A1fxPréparation de votre classeur…
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

Saisissez votre formule dans la feuille, puis vérifiez.

À propos de cet exercice

Un jeu de données de 60 lignes sur une feuille, une cellule de réponse, environ 6 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.

Comment le résoudre

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

Autres méthodes valables

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

Erreurs fréquentes

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.

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.

Dans ces programmes

  • Excel for Data AnalystsJour 3
  • Excel for Administrative AssistantsJour 9
  • Excel for Accounting and BookkeepingJour 4

Exercices associés

  • Days to deadline and tenure in years (TODAY, DATEDIF)Débutant, ~6 min
  • Working days to resolve tickets (NETWORKDAYS)Intermédiaire, ~7 min
  • Turn text dates into real dates and group by monthExpert, ~12 min

Référence de la fonction

Documentation officielle

Exercice suivant

Working days to resolve tickets (NETWORKDAYS)