
DateLevel: BeginnerAvailable in: Excel 2007+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Common errors and fixes
- Related functions
DAY returns 1–31 from a date. Pair it with YEAR and MONTH to rebuild or test dates.
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. |
MONTH · YEAR · EOMONTH
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong