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

Embossing Text

Word can make your text look as if it has been embossed on the page.

Discover More

Creating Selections

Want a really easy way to create a selection of a group of cells? Discover how to use the Extend key to make this task ...

Discover More

Pulling Filenames into a Worksheet

You can use Excel for all types of data processing. You may want to work with filenames in a worksheet, but the first ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Converting Mainframe Date Formats

Different industries and different computer systems specify dates in all sorts of strange ways. If you need to convert a ...

Discover More

Displaying a Number as Years and Months

How do you display a number of years, such as 3.67 years, as a number of years and months? It’s simple to do with a ...

Discover More

Weekdays in a Month

Want to find out how many of a particular weekday occurs within a given month? Here's how you can find the desired ...

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 5 + 3?

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.