Formula Guide

The Excel DAY Function
explained simply

DAY extracts just the day-of-month number (1-31) from a full date value.

ExcelPro · 3 min read · Updated June 2026
Contents
  1. What does DAY do?
  2. Syntax
  3. 3 examples
  4. FAQ

What does DAY do?

DAY pulls out just the day-of-month portion of a date — turning June 22, 2026 into simply 22.

It is most useful inside formulas that need to test or compare specific calendar days, like flagging anything due on the last day of the month.

Syntax

=DAY(date)
ArgumentDescription
date requiredA date value or a cell containing one.

Examples

Example 1
Extract the day from a date
=DAY(A2)

If A2 is June 22, 2026, returns 22.

Example 2
Flag the first of the month
=IF(DAY(A2)=1,"First day","Other")

Checks whether a date falls on the 1st of its month.

Example 3
Find the last day of a month
=DAY(EOMONTH(A2,0))

Combines DAY with EOMONTH to find how many days are in the month A2 falls in.

Common mistakes

⚠️ Confusing DAY with WEEKDAY

DAY returns the day-of-month number (1-31). WEEKDAY returns which day of the week it is (1-7).

FAQ

Does DAY work with text dates?
Only if Excel recognizes the text as a real date already — otherwise convert it first with DATEVALUE.

Practise Excel with real data

ExcelPro has 700+ hands-on Excel exercises across 7 career tracks — free to start, no download needed.

Start practicing free →

Related formulas

YEAR WEEKDAY EOMONTH