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. Merge and wrap

Number formats practice: currency and dates on a transaction export

  • Débutant
  • ~4 min
  • Merge and wrap

Énoncé en anglais

An accounting system exported 100 transactions, but the file lost its formatting: the Date column shows serial numbers such as 46024 instead of dates, and amounts such as 1007.54 have no currency sign or thousands separator. The values are correct — only their display is wrong. Format B2:B101 as dates (yyyy-mm-dd) and E2:E101 as currency with two decimals so the statement can be reviewed.

Ce que vous devez faire

  1. 1Select B2:B101 (click B2, then Ctrl+Shift+↓ / ⌘+Shift+↓).
  2. 2Open Format Cells (Ctrl+1 on Windows, ⌘1 on Mac), pick Date, and choose the yyyy-mm-dd pattern (under Custom if your locale does not list it). The serial numbers turn into 2026 dates.
  3. 3Select E2:E101 and apply Currency with 2 decimal places and the $ symbol — Format Cells → Currency, or Ctrl+Shift+$ (Windows) or Control+Shift+$ (Mac).
  4. 4Check: B2 now reads 2026-01-02 and the amounts show a $ sign, thousands separators and exactly two decimals.

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éFormat the Date column B2:B101 as dates using the yyyy-mm-dd pattern.
  2. Non vérifiéFormat the Amount column E2:E101 as currency with two decimals and a thousands separator ($#,##0.00).

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 100 lignes sur une feuille, 2 cellules 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

    Excel stores every date as a plain number — the count of days since 30 December 1899 — so 46024 and 2026-01-02 are the same value shown two ways. A number format only changes the display: applying a date format makes the serial readable, and the currency format adds the $ sign, the thousands separator and a fixed two decimals without rounding the stored amount. Because nothing was retyped, every total or lookup built on these cells keeps working.

    Pitfall 1: typing the dates in by hand or pasting them as text would turn them into strings — SUM, sorting and date arithmetic break; formats preserve the numeric values. Pitfall 2: Currency versus Accounting — Accounting aligns the $ signs on the left and shows zeros as dashes; both are "currency" to a reader, but a test that asks for the Currency format means the $ next to the number. Pitfall 3: a format with 2 decimals does not round the value; =E2*1 still carries 1234.567. Use ROUND when cents must be exact in totals. Regional settings: m/d/yyyy in the US is d/m/yyyy in the UK and most of Europe; yyyy-mm-dd (ISO 8601) is unambiguous and sorts correctly as text, which is why data teams prefer it. Shortcuts: Ctrl+Shift+# applies the default date format, Ctrl+Shift+$ the currency format, Ctrl+Shift+! the thousands format; Format Painter copies a format from one range to another.

    Autres méthodes valables

    • Home → Number group → drop-down → Short Date / Currency — the one-click presets (then adjust decimals with the Increase/Decrease Decimal buttons)
    • Ctrl+Shift+# for dates and Ctrl+Shift+$ for currency (Windows and Mac) — keyboard-only
    • Format Cells → Custom with codes like dd-mmm-yyyy or $#,##0.00;[Red]-$#,##0.00 — when the preset is not exactly what the report needs

    Erreurs fréquentes

    Retyping the serial numbers as text dates ("2026-03-14"). Text dates look right but will not sort chronologically, cannot be subtracted and are ignored by date functions. Change the format instead.

    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 15 novembre 2026. Auteur : GridBelt team.

    Dans ces programmes

    • Excel test in 7 days, Plan de niveau 1Jour 5
    • Excel test in 7 days, Plan de niveau 3Jour 2
    • Excel for Data AnalystsJour 1

    Exercices associés

    • Merge and center the title; wrap header textDébutant, ~4 min
    • Share of total per region, formatted as %Débutant, ~5 min
    • Year-over-year % changeDébutant, ~4 min
    • Freeze the header row of a long exportDébutant, ~3 min

    Référence de la fonction

    Documentation officielle

    Exercice suivant

    Sort by Region, then Sales descending