30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / How to Get Previous Sunday in Excel (Formula)
By Puneet Gogia (Microsoft MVP)

How to Get Previous Sunday in Excel (Formula)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

To get the date of the previous Sunday, subtract the weekday number from the date: =A1-WEEKDAY(A1,11). The 11 tells WEEKDAY to treat Monday as day 1, so a Wednesday returns 3 and subtracting 3 lands you on Sunday.

If A1 is itself a Sunday, this returns the Sunday a week earlier — use =A1-WEEKDAY(A1,11)+IF(WEEKDAY(A1,11)=7,7,0) if you’d rather it return the same day. For any other previous weekday, change the return_type: 12 gives the previous Monday, 13 Tuesday, 14 Wednesday, 15 Thursday, 16 Friday, and 17 Saturday.

For the next occurrence instead, add seven: =A1-WEEKDAY(A1,11)+7 gives the following Sunday. And to show the day name alongside the result, don’t add it with a formula — press Ctrl+1 → Custom and enter dd-mmm-yy, dddd, which keeps the cell a real date.

If you want to get the date of the previous Sunday for a particular date in Excel, you need to write a formula using Excel’s WEEKDAY function.

get-previous-sunday

Formula to Get the Last Sunday

Below are the steps you need to follow:

  1. Refer to cell A1 where you have the actual date.
  2. Type the minus operator (-).
  3. Insert the WEEKDAY function; in the first argument, refer to cell A1.
  4. In the second argument, enter (11) and hit Enter to get the result (formula below this list).
formula-to-get-last-sunday

Once you hit Enter, it will return the date of the last Sunday from your original date in cell A1.

=A1-WEEKDAY(A1,11)

If the date in A1 is itself a Sunday, this formula returns the Sunday a week before (WEEKDAY returns 7 for a Sunday with return type 11). For example, for Sunday 17-Nov-2024, it returns 10-Nov-2024.

returns-the-last-sunday-date

How does this Formula Work?

To understand this formula, you need to understand the WEEKDAY function first. When you refer to a date in the WEEKDAY function, it returns a number ranging from 1 to 7 according to the date’s day and the week structure you choose.

understand-weekday-function

In the second argument (return_type), you need to specify a number that tells the function which day to consider as the first day of the week. And if you select (2 or 11), it will start the week from Monday.

For Example: If the day is Wednesday and the week starts on Monday, the day number for the date will be 3. So below you can see we have got 3 in the result.

result-from-weekday

And in the end, when you have 3 from the WEEKDAY and deduct it from the original date, you get the date for the previous Sunday in the result.

date-of-previous-sunday

Getting Other Previous Days

You can also get other previous days if you want.

get-other-previous-days
=date-WEEKDAY(date,11)
=date-WEEKDAY(date,12)
=date-WEEKDAY(date,13)
=date -WEEKDAY(date,14)
=date -WEEKDAY(date,15)
=date -WEEKDAY(date,16)
=date-WEEKDAY(date,17)

You need to adjust the [return_type] argument in the function to change the starting day of the week. Each return type gives you the previous date of a different day:

  • 11: previous Sunday
  • 12: previous Monday
  • 13: previous Tuesday
  • 14: previous Wednesday
  • 15: previous Thursday
  • 16: previous Friday
  • 17: previous Saturday

Return types 11 to 17 work in Excel 2010 and later versions.

Applying Day Formatting with the Date

You won’t see the day name in a cell when you get a date in it. But you can change the formatting to get it quickly.

  1. Select the cell and open the Format Cells option (Ctrl + 1).
  2. Click on the Custom category and click in the (Type) input bar.
  3. Enter (dd-mmm-yy, dddd) in it and click OK to apply.
day-formatting-with-date

Second Method

You can also use CHOOSE with the WEEKDAY to get the previous Sunday.

second-method-to-get-previous-sunday
=A1-CHOOSE(WEEKDAY(A1),0,1,2,3,4,5,6)

In this formula, we have used WEEKDAY without specifying the [return_type] argument, and it takes the default value for it and uses Sunday as the first day of the week.

If you have Wednesday, WEEKDAY returns 4 in the result, and CHOOSE returns 3 from the list of numbers. And then, in the end, you’ll get Sunday’s date by deducting 3 days from the original date.

Note: Better to use the first method to get the previous Sunday or any day.

There’s one difference between the two methods. When the date is a Sunday, CHOOSE returns 0, so this formula gives you the same date back, while the first method gives you the Sunday before it. Use the second method when you want the Sunday that starts the current week. The same result comes from this shorter formula:

=A1-WEEKDAY(A1)+1

Get the Next Sunday

To get the next Sunday instead of the previous one, add the days left until Sunday. If the date is already a Sunday, this formula returns the Sunday after it:

=A1+8-WEEKDAY(A1)

Previous Sunday from Today

To get the last Sunday from today’s date, use TODAY in place of the cell reference. The result updates every day:

=TODAY()-WEEKDAY(TODAY(),11)

Last Sunday of the Month

And to get the last Sunday of the month of a date, start from the month end with EOMONTH and go back to its Sunday:

=EOMONTH(A1,0)-WEEKDAY(EOMONTH(A1,0))+1

For any date in November 2024, it returns 24-Nov-2024, and for March 2024, it returns 31-Mar-2024, as that month ends on a Sunday.

Frequently Asked Questions

Why does my formula return a number instead of a date?

The result is a date serial number. Format the cell as a date (Ctrl + 1 ➜ Date) and it shows as a date.

How do I get the previous Monday?

Use return type 12 in place of 11:

=A1-WEEKDAY(A1,12)

Why does WEEKDAY give #VALUE!?

The cell has text that looks like a date, not a real date. Convert it to a date first, for example with DATEVALUE, or with Data ➜ Text to Columns.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

Leave a Comment