Excel.Tips.Net ExcelTips (Menu Interface)

Calculating Week-Ending Dates

Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Calculating Week-Ending Dates.

Do you keep track of information based on week-ending dates? Many businesses do, and therefore need a quick way to calculate the week-ending dates for the complete year. The dates could be easily calculated with a macro, but you can do it just as easily with formulas.

There are two formulas you can use in order to calculate your week-ending dates. Let's assume, for the sake of this example, that your year is stored in cell A1. You could then figure out the first Saturday of the year by using this formula in cell A3:


This works because the WEEKDAY function returns a value of 1 (Sunday) through 7 (Saturday) for any date. If you subtract that value from 7, then you have a value of 6 (Sunday) through 0 (Saturday). When you add that value to the DATE value for January 1 of the year, you end up with the first Saturday of the year.

If you prefer to have your weeks end on Fridays, then the formula needs to change a bit:


Finally, if you prefer to have your weeks end on Sundays, then the formula needs to be like this one:


This formula uses a parameter for the WEEKDAY function that calculates weekdays that range from 1 (Monday) through 7 (Sunday).

Once you have the first week-ending date for the year (in A3, remember?), then you can calculate the rest of the week-ending dates for the year. Place the following formula in cell A4:


This checks to see if one week past the previous date is still in the year. If it is, then the new date is returned. If it isn't, then an empty string is returned. If you copy this formula from A4 down through A55, then you will have all the desired week-ending dates for the year. With the formulas in place, simply change the year in cell A1 to see how the dates change.

The range A3:A55 provides room for 53 week-ending dates, which is possible for any given year. Because you used the IF statement in the formula in cells A4:A55, then the very last value (A55) will be blank if there were only 52 week-ending dates for the year.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2444) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Calculating Week-Ending Dates.

Related Tips:

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!


Comments for this tip:

Jim    05 Dec 2014, 17:47
Thanks. Really appreciate the time spent writing up and sharing this tip. I just used it....very nice.
Michael (Micky) Avidan    21 Nov 2014, 08:01
Forget all about the my previous formula for cell B4.
Instead, use the following:
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)
Michael (Micky) Avidan    21 Nov 2014, 07:45
The principal goes like that:
* In cell B1 type the first date of the month.
* In cell B2 type the day of week (1-7)
* In cell B4 the formula: =B1+CHOOSE(WEEKDAY(B1),B$2-1,B$2+5,B$2+6,B$2+3,B$2+2,B$2+1,B$2)
* In cell B5 the formula: =IF(MONTH(B4+7)>MONTH(B$1),"",B4+7)
Copied down to cell B9.
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2015)

Dayle    21 Nov 2014, 04:50
I am trying to incorporate this cretieria in my dashboard. When i Select day of the week (Eg. Sunday) for a particular month (Nov 2014) all the sundays in the month of Nove should be displayed. (Like : 1 column should show : 02Nov14, another cell should show 09Nov14, another cell should reflect 16Nov14, 23Nov14.

Is this possible ?

Thanks for your help in advance
Michael (Micky) Avidan    24 Apr 2014, 13:45
What do you, exactly, mean by: "week ending date" ?
Could you provide 3-4 examples in which you calculate and present the requested results ?
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2014)
Barb    23 Apr 2014, 09:54
Thanks for this. I generate a report with entry dates on the specific day a data point was entered into a system. From that specific entry date, I would like to derive the week ending date for the week in which it occurred. Is there any way to accomplish that one?

Diana    12 Dec 2012, 17:09
The report I generate is a live update file and I needed the date to automatically show the current week ending information. I tried the tip for week ending on a Friday but it wound up ending on Sunday. I put the following tweaks to the formula and voila!!! It worked! I was so excited ;) Thank you!

Cheryl    19 Jan 2012, 08:48
Great tip! Thanks
Paul    08 Jan 2012, 16:40
what if i wanted excel to calculate the week # for a business calendar that counts the week ending Saturday and month ending (regardless of any day)
So in 2012,we'll have 62 weeks.

I want to create a formula that gives me the week number based on todays date.


Leave your own comment:

  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*What is 4+5 (To prevent automated submissions and spam.)
          Commenting Terms

Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us


Advertise with Us

Our Privacy Policy

Our Sites


Beauty and Style




DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2013)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2013)

Our Products

Premium Newsletters

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2015 Sharon Parq Associates, Inc.