Cellwise

Dates function

Excel DAY function

DAY returns the day of the month from a date, as a number from 1 to 31. Use it to split a date into parts, check which half of the month a payment falls in, or count the days in a month.

fx=DAY(date)

Arguments

date
The date to read, usually a cell that holds a date.

DAY examples

Every result below was calculated live from this sample sheet.

ABC
1BillDue dateAmount
2Rent2026-02-011450
3Internet2026-02-1865
4Car loan2026-02-25312.4
5Phone2026-02-0948
  1. fx=DAY(B3)

    Result: 18

    Returns 18, the day the internet bill is due.

  2. fx=IF(DAY(B4)<=15,"First paycheck","Second paycheck")

    Result: Second paycheck

    Matches each bill to the paycheck that covers it.

  3. fx=DAY(EOMONTH(B2,0))

    Result: 28

    The number of days in February 2026: 28.

How to use DAY

  1. Click the cell for the result.
  2. Type =DAY(
  3. Click the cell with the date.
  4. Press Enter.

Common DAY mistakes

Expecting the day of the week

DAY gives the day of the month. Use WEEKDAY for a 1 to 7 weekday number, or TEXT(A2,"dddd") for the name.

Result looks like a 1900 date

The cell kept a date format. Change it to General.

DAY FAQ

How do I get the number of days in a month in Excel?

Use =DAY(EOMONTH(A2,0)). EOMONTH finds the last day of the month and DAY reads its number.

How do I extract the day from a date in Excel?

Use =DAY(A2). It returns a number from 1 to 31.

How do I show the day name instead of the number?

Use =TEXT(A2,"dddd") for the full name, like Wednesday, or "ddd" for Wed.

Guides that use DAY

Related functions

Updated 2026-10-31