To return the next specific day of week (i.e. the next Wednesday, or Friday, or Monday) with a given start date, you can use a formula based on the WEEKDAY function. In the example shown, the formula in D6 is:
Where B6 contains the date Friday, January 16, 2015, and 2 represents Monday, the "dow". The result is Monday, January 9, 2015.
To get a different day of week, use a different value for "dow" in the formula. With default settings, the WEEKDAY function uses a scheme where Sunday =1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, and Saturday=7.
How the formula works
In Excel, the concept of "weekday" or "day of week" is based on the idea that each day of of the week has a specific number. With default settings, the WEEKDAY function treats Sunday as the first day of the week (1), and Saturday as the last day (7). When given a valid date, the WEEKDAY function will return a number between 1 and 7.
To find the next day of week, this formula first rolls the date forward by 7 days, then steps back to the correct date by subtracting the result of a calculation that uses the WEEKDAY function. In the example shown the formulas in row 6 are as follows:
=B6+7-WEEKDAY(B6+7-7)// C6, get next Saturday=B6+7-WEEKDAY(B6+7-2)// D6, get next Monday
In the first formula (C6), the number 7 (at the end) represents Saturday. In the second formula (D6), the number is 2, for Monday.
To get the Monday of the week (i.e. the beginning of a week) for any given date, you can use the a formula based on the WEEKDAY function. In the example shown, the formula in C6 is: = B5 - WEEKDAY ( B5 , 3 ) Note: In Excel's default scheme, weeks...
To check the weekday of a date, and roll back to Friday when the date is a Monday, you can use the IF and WEEKDAY functions. In the example shown, the formula in C5 is = IF ( WEEKDAY ( B5 ) = 2 , B5 - 3 , B5 ) How this formula works The WEEKDAY...
If you want to find the most recent Wednesday, or Saturday, or Monday, given a specific start date, you can use a formula that uses the MOD function. How the formula works Formulas that use the concept of "day of week" are based on the idea that...
The Excel WEEKDAY function takes a date and returns a number between 1-7 representing the day of week. By default, WEEKDAY returns 1 for Sunday and 7 for Saturday. You can use the WEEKDAY function inside other formulas to check the day of week...
Excel Formula Training
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.