AnalystPracticeGuides
DashboardSign up

EOMONTH and WEEKDAY in Excel

EOMONTH returns the last day of a month, a number of months before or after a date. WEEKDAY returns the day of the week as a number. Both are common in monthly reports and scheduling.

How do you use EOMONTH?

For a date in A2:

FormulaResult
=EOMONTH(A2,0)last day of the same month
=EOMONTH(A2,-1)+1first day of the same month
=EOMONTH(A2,1)last day of next month

Format the cell as a date, otherwise you see a serial number.

How do you use WEEKDAY?

=WEEKDAY(A2,2) returns 1 for Monday up to 7 for Sunday. Without the 2, Sunday is 1, which surprises most people in Europe. Flag weekends:

=IF(WEEKDAY(A2,2)>5,"Weekend","Weekday")

How do you show the day name?

=TEXT(A2,"dddd")

returns the full name, such as Saturday. "ddd" gives the short form.

Try it yourself. Practise this in a real spreadsheet in your browser, with instant feedback.
Practise EOMONTH and WEEKDAY

Updated November 2026.

← All free guides