Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Calculating Weekend Dates.

Calculating Weekend Dates

by Allen Wyatt
(last updated March 7, 2018)

4

Reuben needs to know, for any given date, when the next weekend is. For his purposes, weekends begin on Saturday, so this basically means coming up with a way to "round up" a date (Sunday through Friday) to the next Saturday.

There are any number of ways that you can calculate the date of the next Saturday. This is made possible because dates are stored internally by Excel as numbers, and numbers can be easily manipulated. Perhaps the easiest way to calculate the next Saturday is this formula:

=A1+7-WEEKDAY(A1)

You can also use a very simple application of the CEILING function, as shown here:

=CEILING(A1,7)

These two formulas will return the date of the next Saturday, unless the date in A1 is already a Saturday. If you want a starting date of Saturday to return the date of the following Saturday, then this formula will work just fine:

= IF(WEEKDAY(A1)=7,7,7-WEEKDAY(A1))+A1

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9305) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Calculating Weekend Dates.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Entering a "Slashed Zero" in Your Document

Need to add the occasional zero with a slash through it? There are a couple of ways you can accomplish this task.

Discover More

Creating a Full-Page Border

Borders are easy to add around text or entire paragraphs. It may be surprising to you to learn that Word can just as ...

Discover More

Improper Index Page Numbers

Adding an index to a document can be a nice finishing touch, particularly if the document is a long one. What happens if ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Backwards Date Parsing

Enter information into a worksheet, and you come to anticipate (and count on) how Excel will interpret that information ...

Discover More

Pulling All Fridays

It can be handy to know when specific weekdays occur within a range of dates. Figuring out this information, using ...

Discover More

Calculating the First Business Day of the Month

Want to know which day of the month is the first business day? The easiest way to determine the date is to use the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 9?

2018-03-08 10:25:52

Gary

@Willy
I recognize I could have combined the "7+1" and removed the parenthesis, but left as I did to show the "+1" added to the 2 'parts' of the formula:
1) the calculation of the next weeks date;
2) subtracting the day of week

I like my formulas to provide some structure to indicate the intent and operation for understanding when I revisit them ... sometimes years later.

Nice work with the CEILING function, I did not review it because I rarely use CEILING.


2018-03-08 07:43:18

Willy Vanhaelen

Here is an even shorter version:
=CEILING(A1+1,7)
does the same job as this tip's
=IF(WEEKDAY(A1)=7,7,7-WEEKDAY(A1))+A1


2018-03-08 06:21:52

Willy Vanhaelen

@Gary
Very clever but you can even shorten it with 4 characters. Replace (B2+7+1) with B2+8 (no need for the brackets):

=B2+8-WEEKDAY(B2+1)


2018-03-07 12:35:36

Gary

An alternate formula (without using the IF statement) to calculate the next Saturday is
=(B2+7+1)-WEEKDAY(B2+1)
This works for all days, with no Saturday checking required.
It is based on the first presented formula but 'skips' past the WEEKDAY 7 to 0 'boundary' condition that causes the problem.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.