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

Using Your Own File Extensions

Word uses the DOC file extension for regular documents. If you want to use a different file extension, you can easily do ...

Discover More

Listing Documents with Passwords

Do you need a list of documents that require a password or that require a particular password to open? Word doesn't ...

Discover More

Rounding to Two Significant Digits

Excel provides a variety of functions you can use to round values in any number of ways. It does not, however, provide a ...

Discover More

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!

More ExcelTips (ribbon)

Years in Which a Date Occurred on a Particular Day

If you need to know the years in which a particular date occurred on a specific day of the week, there are a number of ...

Discover More

Using Early Dates

Excel is brilliant at handling dates—as long as they aren't dates earlier than the base date used by the program. ...

Discover More

Leap Years and Fiscal Periods

Need to figure out when a fiscal year ends when that period does not correspond to the calendar year? Here are some ways ...

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 four minus 0?

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.