DAY Function in Excel: Day of the Month

DAY Function in Excel: Day of the Month featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

DateLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Common errors and fixes
  6. DAY in practice
  7. Where you will use it
  8. Worked example
  9. Mistakes people make
  10. Related functions
  11. Continue learning

DAY returns 1–31 from a date. Pair it with YEAR and MONTH to rebuild or test dates.

Advertisement

Syntax

=DAY(serial_number)
Argument What it means
serial_number A real date, not text.

Examples

Example 1

=IF(DAY(A2)<=15, "First half", "Second half")

Split invoices by half-month.

Example 2

=DAY(EOMONTH(A2,0))

Number of days in that month.

Common errors and fixes

You see Why, and the fix
#VALUE! Text Excel cannot read as a date, e.g. 31/12/2018 on a PC set to US format.

DAY in practice

Where you will use it

  • Day of month for due-date rules (e.g. pay by the 7th)
  • Split dates into parts for reports
  • Find invoices raised in the last week of a month

Worked example

DateFormulaResult
04-Oct-2026=DAY(A2)4
28-Feb-2026=DAY(A3)28
31-Dec-2026=DAY(A4)31

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Applying DAY to text datesConvert text to real dates first
Expecting the weekdayDAY gives the day number; WEEKDAY or TEXT(date,"dddd") gives the weekday

MONTH Β· YEAR Β· EOMONTH

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Dates & times22 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 34 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong