Spreadsheet Practice

How to get the date of the next Friday in Excel

Formula (Excel and Google Sheets)

=A2+7-MOD(WEEKDAY(A2)-$E$1,7)

Add the days to the next Friday: =A2+7-MOD(WEEKDAY(A2)-6,7), with the weekday number (6 for Friday) in a cell if it changes.

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

MOD(WEEKDAY(A2)-$E$1,7) is the number of days since the last Friday, 0 on a Friday. Seven minus that is the number of days to the next one, so a Friday moves a full week ahead and a Thursday moves one day.

=A2+7-MOD(WEEKDAY(A2)-$E$1,7)

Result46087

  1. A23/2/2026

    The value in A2.

  2. A2+746090

    The + operator adds.

  3. WEEKDAY(A2)2

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

    • serial_numberA23/2/2026
  4. $E$16

    The value in E1.

  5. WEEKDAY(A2)-$E$1-4

    The - operator subtracts.

  6. MOD(WEEKDAY(A2)-$E$1,7)3

    MOD: Remainder after division.

    • numberWEEKDAY(A2)-$E$1-4
    • divisor7
  7. A2+7-MOD(WEEKDAY(A2)-$E$1,7)46087

    The - operator subtracts.

In Google Sheets

The same formula works in Google Sheets: =A2+7-MOD(WEEKDAY(A2)-$E$1,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
=A2+MOD($E$1-WEEKDAY(A2),7)3/6/2026, 3/6/2026, 3/6/2026…Different resultOn or after: a Friday stays on the same day. Fridays stay on the same date.
=A2+8-WEEKDAY(A2+2)3/6/2026, 3/6/2026, 3/13/2026…A short version that works for Friday only.

Common mistakes

  • WEEKDAY counts from Sunday = 1, so Friday is 6. With WEEKDAY(A2,2) (Monday = 1) Friday would be 5; don't mix the two numberings.
  • Decide whether "next Friday" can be the same day. This formula never returns the order date itself; use the on-or-after version when it should.

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.

Get the date of the next Friday

In B2, return the first Friday after the order date (the weekday number is in E1), and fill down to B7.

Questions

How do I get the next Monday?

Put 2 in E1. Any weekday works: 1 is Sunday and 7 is Saturday.

How do I get the previous Friday?

=A2-MOD(WEEKDAY(A2)-$E$1-1,7)-1 returns the last Friday before A2.

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.