How to find the date of previous Sunday in Excel?
Sometimes, when you work on an Excel worksheet, you want to get the date of the most recent Sunday past from a given date. Let’s say, you have a date 2015/2/6, and now, you want to get the previous Sunday 2015/2/1. How could you deal with this task in Excel?
Recommended Productivity Tools for Excel
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 71% of your time and solve 82% Excel problems for you. 300+ advanced tools designed for 1500+ work scenario, make Excel much easy and increase productivity immediately.60-day Unlimited Free Trial
With the following simple formula, you can quickly get the date of the recent Sunday past from the given date. Please do as follows:
1. Type this formula: =INT((A2-1)/7)*7+1 into a blank cell besides your given date, (A2 is the cell which has the date that you want to use), see screenshot:
2. Then drag the fill handle over to the cells that you want to fill this formula, and you will get five-digit number as following screenshot shown:
3. And then change the cell format to date, right click and choose Format Cells from the context menu, then in the popped out Format Cells dialog, under the Number tab, click Date from the left Category pane, and then choose one date format you need from the Type list box, see screenshot:
4. After specifying the date format, click OK to close the dialog, and you can see the numbers have been converted to date format:
Note: With this formula, if the given date just is Sunday then the calculated date would be that day.