Contact

DAY Function in Google Sheets: Formula, Examples & Troubleshooting

Date & time Beginner Google Sheets

Learn the DAY formula in Google Sheets: extract the day of month from a date, with reproducible examples, expected answers and compatibility cautions.

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

Quick answer: DAY(date) extracts the numeric day of the month. =DAY(DATE(2026,10,11)) returns 11. It does not return a weekday or the number of days elapsed between two dates; keep the component output as a number.

Availability and version history

  • Introduced: Introduction version not established by the official history reviewed.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official DAY reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and reliable date values

=DAY(date)

Supply a validated date-valued cell, a DATE expression or an appropriate numeric date serial. Use English function names and comma separators for these examples, and inspect the shared spreadsheet’s locale before comparing date text.

A DAY result is an integer component, so display it as a plain number. A date format on the extracted 11 would treat it as serial 11 rather than restore October 11, 2026.

Two original worked controls

=DAY(DATE(2026,10,11))
=DAY(DATE(2024,2,29))

Expected results are 11 and 29. The first returns the day within October; the second returns the valid leap day’s number within February. Neither output retains its input’s year or month.

Advanced example: compare adjacent dates across a month end

=DAY(DATE(2026,2,1))-DAY(DATE(2026,1,31))
=DATE(2026,2,1)-DATE(2026,1,31)

Expected results are −30 and 1. The first subtracts labels that reset at the start of a month. The second subtracts complete dates and measures one day.

For a record spanning more than one month, summing or subtracting DAY components is not a replacement for date arithmetic. Use the original numeric dates when the question is about elapsed days.

Advanced example: find the number of days in a month

=DAY(EOMONTH(DATE(2024,2,4),0))
=DAY(EOMONTH(DATE(2026,2,4),0))
=DAY(EOMONTH(DATE(2026,4,15),0))

Expected results are 29, 28 and 30. EOMONTH first returns the final calendar date; DAY then extracts that date’s day number. A valid month ends on its last numbered day, which gives the length.

Keep the intermediate date and final count distinct if using helper cells. The date should be date-formatted, while the count should be numeric. See EOMONTH for signed month offsets and decimal truncation.

Advanced example: construct a month-start key

For A2 containing =DATE(2026,10,11):

=A2-DAY(A2)+1
=DATE(YEAR(A2),MONTH(A2),1)

Both expected date-only results are 2026-10-01. The arithmetic expression subtracts ten days; the component expression explicitly constructs the first day.

These formulas answer a month-key question. They do not return the day count 1 as their full result, and their outputs should be displayed as dates. When inputs include times, preserve or discard the time part according to an explicit policy rather than assuming every date-looking value is date-only.

Advanced example: flag dates in the first week of a month

Put DATE expressions for 2026-10-01, 2026-10-07, 2026-10-08 and 2026-11-01 in A5:A8. In B5 enter and fill down:

=DAY(A5)<=7

Expected flags are TRUE, TRUE, FALSE, TRUE. This identifies the first seven numbered days in each month. It does not mean a Monday-through-Sunday calendar week or the first seven working days.

If the intended question is the day of the week, use WEEKDAY and document its numbering convention. A date on the eleventh can be any weekday depending on the month and year.

Advanced check: retain all components for reconstruction

With C2 containing =DATE(2024,2,29):

=DATE(YEAR(C2),MONTH(C2),DAY(C2))

Expected date: 2024-02-29. Replacing C2 with its DAY result 29 first would lose the information needed for reconstruction. Keep source dates separate from extracted reporting columns.

Text, arithmetic and source limitations

Google’s page contains a quoted-date sample as well as a warning about function input conversion. This guide does not infer a universal accept/reject rule for every quoted string from that combination. DATE-based controls avoid regional parsing ambiguity.

The unquoted DAY(10/10/2000) expression performs division. The correct quotient is 0.0005, not the 0.005 printed in the warning. To express October 10, 2000, use DAY(DATE(2000,10,10)), with expected component 10.

Exact blank, Boolean, malformed-text and historical-serial errors remain unverified. Formatting a string to resemble a date is also not proof that it was converted to a numeric date value.

Related guides already published for this function: Microsoft Excel | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | ONLYOFFICE Spreadsheet Editor

A guide in another program is a separate documented reference, not a guarantee of identical parsing, historical serials or native error displays. Use the function comparison tool to inspect guide coverage.

The complete guide and original examples were reviewed on October 14, 2026 against direct Google documentation. Expected calendar and numeric outputs were independently calculated; no native Google Sheets execution, mobile-client certification or complete input-conversion test was performed.