To generate a dynamic series of dates that include only certain days of the week (i.e. only Tuesdays and Thursdays) you can use the WORKDAY.INTL function. In the example shown, the date in B5 is a hardcoded start date. The formula in B6 is:
The formula returns only Tuesdays and Thursdays as the formula is copied down. If the start date in B5 is changed, new dates are dynamically generated.
How the formula works
The WORKDAY.INTL function is normally used to find dates that are workdays. For example, you can use WORKDAY.INTL to find the next workday that is not a weekend or holiday, or the first workday 5 days from now.
One of the the arguments provided to WORKDAY.INTL is called "weekend", and controls which days are considered non-working days. The weekend argument can be provided as a number linked to a preconfigured list, or as a 7-character code that covers all seven days of the week, Monday through Saturday. This example uses the code option to "filter out" days that are not Tuesdays or Thursdays.
In the code, 1's represent weekend days (non-working days) and zeros represent work days, as illustrated with the table in D4:K9. We only want to to see Tuesdays or Thursdays, so we use zeros for these days, and 1's for every other day:
To generate a dynamic series of dates that are workdays only (i.e. Monday through Friday), you can use the WORKDAY function. In the example shown, the formula in B6 is: = WORKDAY ( B5 , 1 , holidays ) where holidays is the named range E5:E6. How...
To generate a dynamic series of dates that are weekends only (Saturday and Sunday), you can use the WORKDAY.INTL function . In the example shown, the date in B5 is a hardcoded start date. The formula in B6 is: = WORKDAY.INTL ( B5 , 1 , "1111100...
The Excel WORKDAY.INTL function takes a date and returns the nearest working in the future or past, based on an offset value you provide. Unlike the WORKDAY function, WORKDAY.INTL allows...
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.