How to determine an end date after a certain number of specific weekdays

mariantoanet

New Member
Joined
Sep 26, 2024
Messages
4
Office Version
  1. 2013
Platform
  1. Web
Hi everyone, I'm trying to figure out how to create a formula in Google Sheets to determine an end date.

Specifically, I need to calculate a date that occurs after a certain number of specific weekdays. For instance, if the starting date is January 1st, I'd like to find the date that falls on the 12th occurrence of both Tuesdays and Thursdays.

Thank you.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Book1.xlsm
BCD
2601.01.202419.03.2024Tuesday 12th
2701.01.202421.03.2024Thursday 12th
Sheet16
Cell Formulas
RangeFormula
C26C26=B26-DAY(B26)+1+12*7-WEEKDAY(B26-DAY(B26)+8-3)
C27C27=B27-DAY(B27)+1+12*7-WEEKDAY(B27-DAY(B27)+8-5)
 
Upvote 0
Thank Sergius for taking the time to help me with this formula. Your suggestion is a great starting point. However, I'm still trying to find a formula that can accommodate a variable start date and also calculate the end date based on a specific count of occurrences of multiple weekdays.

How can I modify the formula to find that date?

Thank you.
 
Upvote 0
In the yellow cells, write what you need: the starting date, the week, the desired day of the week. Based on this data, the formula will calculate the day you need.
Book1.xlsm
EFGH
23Start date01.01.2024
24Week12
25Day of the week3
2619.03.2024Tuesday 12th
Sheet16
Cell Formulas
RangeFormula
G26G26=$F$23-DAY($F$23)+1+$F$24*7-WEEKDAY($F$23-DAY($F$23)+8-$F$25)
 
Upvote 0
I appreciate you taking the time to help me with this.

I've tried inputting the formula as you suggested, but it seems to be returning an incorrect value. Would you mind double-checking the formula to see if there's anything went wrong?
 

Attachments

  • Screenshot 2024-09-30 at 16.23.11.png
    Screenshot 2024-09-30 at 16.23.11.png
    47.2 KB · Views: 6
Upvote 0
September 10 falls in the second week of the month. Therefore, the formula produced this date.
 
Upvote 0
Hi & welcome to MrExcel.
Is this what you want.
Fluff.xlsm
AB
1
2Start date01/01/2024
3No. of days12
408/02/2024
Sheet6
Cell Formulas
RangeFormula
B4B4=WORKDAY.INTL(B2-1,B3,"1010111")
 
Upvote 0
Hi & welcome to MrExcel.
Is this what you want.
Fluff.xlsm
AB
1
2Start date01/01/2024
3No. of days12
408/02/2024
Sheet6
Cell Formulas
RangeFormula
B4B4=WORKDAY.INTL(B2-1,B3,"1010111")

Thank you for the simple yet effective formula. It's exactly what I needed. I save so much time with this 😍
 
Upvote 0
Using WORKDAY.INTL with day_parameter like this:
forex: "0111111" with Monday
"1101011" with Tuesday and Thusday
(0 indicates specific day of week)


Xep lich cho NV.xlsm
ABCD
1start date01-Jan-2401-Jan-2401-Jan-24
2occurrence 121220
3day of weekTueTue, ThuFri
4end date19-Mar-2408-Feb-2417-May-24
Sheet3
Cell Formulas
RangeFormula
B4B4=WORKDAY.INTL(B1,B2,"1011111")
C4C4=WORKDAY.INTL(C1,C2,"1010111")
D4D4=WORKDAY.INTL(D1,D2,"1111011")
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top