Contact

MONTH Function (Gnumeric)

Date & Time Beginner Gnumeric

Extract month numbers from Gnumeric date serials, preserve calendar-year context and avoid confusing formatting with stored dates.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

MONTH extracts the calendar month from a spreadsheet date serial and returns an integer from 1 through 12. It does not return a localized month name or a count of months elapsed between two dates.

Supply a genuine date serial or a reference to one. DATE constructs reproducible inputs without relying on whether a locale reads a string as month/day or day/month. The workbook’s date convention matters when interpreting bare serial numbers; the examples here construct calendar dates explicitly.

Syntax

MONTH(date)

Worked examples

The original =MONTH(DATE(2025,1,15)) returns 1 for January. Put =DATE(2025,1,15) in A2 and =MONTH(A2) in B2 to retain the full date alongside the extracted component.

MONTH(DATE(2025,12,31)) returns 12. =MONTH(DATE(2025,1,15)+TIME(14,30,0)) still returns 1, because a time-of-day fraction does not change that date’s month.

The numerical result 1 should not be formatted as though it were the original January 2025 date serial. A month component has lost the year and day information. Keep the original date available for chronological operations.

Advanced use

For summaries spanning several years, group by both year and month rather than MONTH alone. Otherwise January observations from different years can be combined unintentionally. A month number is useful for seasonal grouping precisely when that cross-year combination is deliberate.

For an actual month-start date, reconstruct a date from the original year and extracted month with day 1. This preserves a chronological key instead of a label. Document whether a grouping represents a calendar month, a fiscal period or an elapsed interval; MONTH only supplies the calendar component.

Errors and troubleshooting

MONTH(“bad”) returns #VALUE! for invalid date text. A cell that merely resembles a date can still be text, and imported raw serials can refer to different dates under different date systems. Compare constructed dates when diagnosing conversion problems.

Date tip: Dates are internally numeric values, while date formatting controls their appearance. Compare actual dates, not text that merely resembles dates.

These modern-date examples do not establish historical-calendar edge behavior or every parsed date-string convention. Do not infer an elapsed-month calculation by subtracting two MONTH results across a year boundary.

Availability and verification

  • Introduced: Documented by 1.12.62; original introduction not established.
  • Historical source availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
  • Scope: Desktop; the fn-date function module must be included and enabled.
  • Historical check: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.

The selected examples and errors were recalculated with the actual Gnumeric 1.12.57 engine under C.UTF-8 on 17 October 2026. Native workbooks and observed outputs are retained. Historical 1.12.62 registration is a separate source check, not a native runtime test. No GUI test or retirement date is established, and the last functioning release remains unverified.

Official references