Spreadsheet Practice

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 to B7
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

  1. A21/5/2026

    The value in A2.

  2. EOMONTH(A2,0)1/31/2026 (46053)

    EOMONTH: Last day of the month, months away.

    • start_dateA21/5/2026
    • months0
  3. EOMONTH(A2,0)1/31/2026 (46053)

    EOMONTH: Last day of the month, months away.

    • start_dateA21/5/2026
    • months0
  4. WEEKDAY(EOMONTH(A2,0))7

    WEEKDAY: Day of the week as a number; Sunday = 1 by default.

    • serial_numberEOMONTH(A2,0)1/31/2026 (46053)
  5. WEEKDAY(EOMONTH(A2,0))-61

    The - operator subtracts.

  6. MOD(WEEKDAY(EOMONTH(A2,0))-6,7)1

    MOD: Remainder after division.

    • numberWEEKDAY(EOMONTH(A2,0))-61
    • divisor7
  7. EOMONTH(A2,0)-MOD(WEEKDAY(EOMONTH(A2,0))-6,7)46052

    The - 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.

FormulaResultWhen 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

In 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.