Contact

DAYS Function in Apple Numbers: Syntax, Examples and Troubleshooting

Date and time Beginner Apple Numbers

Calculate signed days between dates in Apple Numbers with exact argument order, reproducible examples, common errors and alternatives.

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

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented for Numbers in that help version; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official DAYS reference. Documentation check; not a new native test.

Quick answer

=DAYS(DATE(2024,2,15),DATE(2024,1,15)) has an expected result of 31. The order matters: end date first, then start date. Swapping the dates changes the sign. This counts elapsed date boundaries, not an inclusive number of calendar dates.

When to use DAYS

Count signed calendar days between two dates, with the end date supplied first. Use it in a named Numbers table so input cells, dates, month offsets, and results are visible to anyone auditing the workbook. Unlike generic one-line formula lists, the shared sample below records both the input values and the expected output, including leap years, backward dates, and cross-year intervals.

Official syntax and arguments

=DAYS(end-date, start-date)
Argument Required type and meaning
end-date Required: date/time value or date string for the ending point.
start-date Required: date/time value or date string for the starting point.

Return: A signed numerical count of calendar days; negative when the end date precedes the start date.

There are no optional arguments and therefore no documented default value in this signature. Do not silently omit the second argument. Apple’s official DAYS page supplies the exact function name, argument order and return purpose (English Functions Help documentation path 15.4, accessed 2026-10-11). This date is the documentation revision being consulted, not proof the function was introduced with app version 15.4.

Reproducible Numbers table: month-boundary dataset

Create a table named Billing in Numbers and make row 1 a header row. Enter the first four columns as numeric cells, not date-like strings. In E2 enter =DATE(A2,B2,C2) and fill it down to E6. Format E:G as Date & Time so they show dates. The display order can be changed without changing the stored date.

Row A Year B Month C Day D Offset (months) E Start date* F EDATE(E,D)* G EOMONTH(E,D)* H DAYS(F,E) I DAYS(G,E)
2 2024 1 15 1 2024-01-15 2024-02-15 2024-02-29 31 45
3 2024 2 15 -1 2024-02-15 2024-01-15 2024-01-31 -31 -15
4 2025 11 15 2 2025-11-15 2026-01-15 2026-01-31 61 77
5 2026 6 1 0 2026-06-01 2026-06-01 2026-06-30 0 29
6 2026 12 15 -12 2026-12-15 2025-12-15 2025-12-31 -365 -349

*Columns E, F and G show expected dates, not text you should enter. The Numbers workbook must calculate them with formulas. The table uses ISO-style YYYY-MM-DD labels solely for an unambiguous illustration; local Numbers formatting may present the same dates differently.

To fill out the table after E2:E6 are calculated: enter =EDATE(E2,D2) in F2, =EOMONTH(E2,D2) in G2, =DAYS(F2,E2) in H2, and =DAYS(G2,E2) in I2; fill each result formula through row 6. All dates and day differences shown here were checked using independent calendar calculations, not run in Numbers.

Step-by-step DAYS examples

  1. Make the Billing table exactly as shown above, including the six input rows and formula columns E:I.
  2. In H2 enter =DAYS(F2,E2); fill down through H6. Expected H values: 31, -31, 61, 0, -365.
  3. In I2 enter =DAYS(G2,E2); fill down through I6. Expected I values: 45, -15, 77, 29, -349.
  4. Check a leap day without a typed date string: =DAYS(DATE(2024,3,1),DATE(2024,2,28)) is expected 2, because 2024 includes February 29.
  5. Confirm direction: =DAYS(DATE(2024,1,15),DATE(2024,2,15)) is expected -31.
  6. =DAYS(E5,E5) is expected 0, so this is not an inclusive date count.

Advanced applications and why they work

Flag cases where the calculated target comes before the original date

Add column J — Schedule Direction to Billing. Enter =IF(DAYS(F2,E2)<0,"Earlier","Same or later") in J2 and fill to J6. Expected J2:J6: Same or later, Earlier, Same or later, Same or later, Earlier. The direction is based on actual day differences, not an assumption that month offsets are always positive.

Calculate the absolute length of an interval

For a two-way date gap when direction is irrelevant, =ABS(DAYS(F3,E3)) is expected 31. Avoid this when an early-versus-late distinction matters, because ABS discards the sign.

Calendar days versus workdays

DAYS includes weekends and ordinary holidays in the elapsed count. Apple’s separately documented NETWORKDAYS is a different function for working-day questions; use its own rules when a business calendar is required. A DAYS result should not be labelled “business days.”

Edge cases, limits and troubleshooting

  • Reversed arguments: A negative answer often means you supplied the earlier date as end-date, not that Numbers is broken. Compare H3 (-31) with H2 (31).
  • Inclusive periods: DAYS(A,B) yields zero when A=B; if your policy includes both endpoints, define and verify a separate inclusive-count calculation rather than silently relabelling the result.
  • Text input: Apple accepts date strings, but 01/02/2026 can mean different dates across locales. Use actual Numbers date/time cells or numeric DATE() construction for reproducibility.
  • Invalid dates and unexpected output: Check which cells are formatted as text, the argument order, and whether a header row or blank cell was referenced. Never claim a specific error code without testing it in the targeted Numbers version.
  • Do not confuse DAY and DAYS: DAY extracts a day-of-month component; DAYS measures a gap between two dates.

Excel, Google Sheets and Numbers differences

Microsoft Excel’s official DAYS reference confirms the same end_date, start_date order for its DAYS function. That establishes equivalent intent and formula argument order, not identical treatment of all text, serial numbers, time components or errors. Google Sheets uses similar date functions, but its parsing and spreadsheet-reference rules must be checked separately before copying a workbook. Numbers table references and locale separators remain Numbers-specific.

Apple DAY (different purpose) and Apple EDATE and Apple EOMONTH. The EDATE/EOMONTH links point to Apple’s official documentation. See the function directory for local tutorials.

See also Apple’s formulas and Functions Help for documentation navigation. Related site slugs such as /apple-numbers/functions/edate/ and /apple-numbers/functions/eomonth/ are proposed routes only and were not asserted to be live URLs; link publication must be checked manually.

Numbers-specific formula, locale and platform notes

In Numbers, cells belong to named tables, and A2 can refer to the active table’s cell A2. In a separate table, use the Numbers formula editor to select the target cell from Billing, which inserts an appropriately qualified table reference. Do not paste an Excel-only Sheet1!A2 reference into Numbers and assume it will resolve. Check Apple’s cell-reference guidance when moving formulas between tables.

Apple documents formulas using commas between arguments. When your decimal separator is a comma, Apple says to enter semicolons between arguments instead. Thus the comma-separated examples in this English guide may need adjustment for your regional settings. Date displays and typed date strings also depend on the region: building dates with DATE(2024,2,15) instead of parsing 2/15/2024 avoids much of the ambiguity. Apple’s function syntax guidance was checked on 2026-10-11.

Supported scope, stated narrowly: These function signatures and examples are documented in Apple’s English Formulas and Functions Help, documentation path 15.4. Apple’s welcome/help page describes the function browser in Numbers on Mac, iPhone, iPad, and in supported iWork experiences on iCloud.com; this does not certify identical behavior or the first-supported app version on every platform. Neither this page nor Apple’s individual function page provides a verified minimum version by platform; actual version-by-version parity is not established here. Recheck the function browser in the app/version you use.

Official reference and verification

Verification status: Official documentation checked; example outcomes were independently reasoned or arithmetically checked where applicable. Not executed in Apple Numbers.

  • No genuine Apple Numbers screenshots are included; this guide does not use mock application images.