How to find the last Friday of the month in Excel
Formula (Excel and Google Sheets)
=EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7)Step back from the month end to the last Friday: =EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7).
- Result on the example
- one result per row in
B2, filled down toB7 - Works in
- Every current version
- Google Sheets
- Same formula
See it work
The formula is already in B2, filled down to B7. Change any input and the result updates, or edit the formula to experiment.
How it works
EOMONTH(A2,0) is the last day of the month. WEEKDAY gives 6 for Friday, so MOD(WEEKDAY(last)-6,7) is how many days the month end is past a Friday: 0 on a Friday, 1 on a Saturday, 6 on a Thursday. Subtracting it steps back to the last Friday.
=EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7)Result46052
A21/5/2026The value in A2.
EOMONTH(A2,0)1/31/2026 (46053)EOMONTH: Last day of the month, months away.- start_date
A21/5/2026 - months
0
- start_date
EOMONTH(A2,0)1/31/2026 (46053)EOMONTH: Last day of the month, months away.- start_date
A21/5/2026 - months
0
- start_date
WEEKDAY(EOMONTH(A2,0))7WEEKDAY: Day of the week as a number; Sunday = 1 by default.- serial_number
EOMONTH(A2,0)1/31/2026 (46053)
- serial_number
WEEKDAY(EOMONTH(A2,0))-61The - operator subtracts.
MOD(WEEKDAY(EOMONTH(A2,0))-6,7)1MOD: Remainder after division.- number
WEEKDAY(EOMONTH(A2,0))-61 - divisor
7
- number
EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7)46052The - operator subtracts.
In Google Sheets
The same formula works in Google Sheets: =EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7). We ran it in Google Sheets mode on the same data and it returns the same results.
Other ways to do it
Each one was run on the same example sheet.
| Formula | Result | When to use it |
|---|---|---|
| =EOMONTH(A2,0)+1-WEEKDAY(EOMONTH(A2,0)+2) | 1/30/2026, 2/27/2026, 4/24/2026… | A shorter classic that works for Friday only. |
| =LET(last,EOMONTH(A2,0),last-MOD(WEEKDAY(last)-6,7)) | 1/30/2026, 2/27/2026, 4/24/2026… | The same with LET, so the month end is calculated once. |
Common mistakes
- Without MOD, months that end on a Wednesday or Thursday give a negative step and a date in the next month.
- For another weekday, change the 6: 1 is Sunday, 2 Monday, up to 7 for Saturday.
Try it yourself
Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.
Find the last Friday of the month
B2, return the last Friday of the month of the date in A2, and fill down to B7.Questions
How do I get the last Monday, like Memorial Day?
=EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-2,7). For May 2026 that is May 25.
How do I get the last business day instead?
=WORKDAY(EOMONTH(A2,0)+1,-1).
Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.