
Extract the day of the month from a date. DAY is useful when you need the 1-31 part of a date for recurring logic and date-based checks.
The DAY function returns the day of the month from a date as a number from 1 to 31. It is useful when you only need the day part of a full date and want to ignore the month and year.
This comes up in recurring schedules, billing logic, reminders, and other formulas that care about a position inside the month instead of the full calendar date.
Use DAY when you need the 1-31 part of a date for formulas or checks.
DAY returns only the day number, not the full date.
=DAY(serial_number)
DAY takes one argument: a valid Excel date value. That value can come from a cell reference, a DATE formula, TODAY, or even a raw serial number.
If the input is a real date, DAY returns just the day part. For example, if the date is April 15, 2026, DAY returns 15.
DAY is one of several functions that extract one part of a date. The main difference is simply which part you want back.
| Function | Returns | Best For | Example |
|---|---|---|---|
DAY |
Day of the month | Recurring monthly checks | =DAY(A1) |
MONTH |
Month number | Month-based grouping or filtering | =MONTH(A1) |
YEAR |
Year number | Year-based reporting | =YEAR(A1) |
WEEKDAY |
Day-of-week position | Weekend or weekday logic | =WEEKDAY(A1) |
The key point is that DAY does not tell you the weekday or the month. It only returns the day number inside that month.
The most common use of DAY is extracting a day number from a date that already exists in your worksheet. If the full date is important for storage, but the day number is important for logic, DAY gives you that one piece directly.
This is useful in formulas like billing reminders, due-date checks, monthly cutoffs, and recurring trigger dates. For example, if a task always happens on the 15th, you can test whether DAY(A1)=15.
DAY when you only care about the 1-31 part of a date.DATE, TODAY(), or cell references that already contain dates.EOMONTH if you need month-end logic.One helpful detail is that DAY can read raw Excel serial dates too. If the value is a valid date serial, Excel can still return the correct day number from it.
This is the most basic use of DAY: return the day of the month from a normal date.
=DAY("2026-04-15")
This returns 15.
Extract the day from the date in A1. Formula: =DAY(A1).
You can combine DAY with another date function if the date is built by formula instead of typed directly.
=DAY(DATE(2025,12,25))
This returns 25.
Extract the day from a DATE formula. Formula: =DAY(DATE(2025,12,25)).
Excel stores dates as serial numbers in the background, so DAY can also work on that raw value.
=DAY(46023)
If the serial is a valid date, DAY returns the matching day of the month.
Extract the day from the serial value in A4. Formula: =DAY(A4).
DAY also works well with month-end formulas. One common pattern is comparing the current day with the last day of the month.
=DAY(EOMONTH(A1,0))-DAY(A1)
This returns the number of days left before the month ends.
Calculate the remaining days in the month from A1. Formula: =DAY(EOMONTH(A1,0))-DAY(A1).
DAY is simple, but it becomes very useful once your formulas need to react to recurring positions inside a month. It gives you a clean way to pull just the day number without rebuilding the entire date logic around it.
DAY returns the day of the month from a date.DATE, TODAY(), and EOMONTH.Tell your friends about this post