Nth Date Question by a Noob

MadDad75

New Member
Joined
May 21, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
This is my very first post. I've tried to search answer on the 'internet' to no avail. But a friend had suggested mrexcel.com forum. I've had a look around and couldn't find any answers (bit of a Noob at this, sorry if the question has already been asked somewhere.)

I'm trying 'badly' to find a formula to calculate what the Nth is of a specific date.

ie. So today is Sunday 21st May 2023, what formula could I use for it to tell that it's the 3rd Sunday of the Month.

I'm not looking for a formula that tells me what the 3rd Sunday of a particular month is. I would also like it that it'll tell me what the Nth is of any date that I put in.

Thanks to anyone who answers.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Did you check your formula on a variety of dates?
I am not sure what your exact requirements are.
You can try the following with your data.

Dates_2023.xlsm
ABC
1Sun 21-May-2333
2Mon 29-May-2355
3Wed 31-May-2355th Wed
4Mon 01-May-2311st Mon
5
3e
Cell Formulas
RangeFormula
B1B1=NETWORKDAYS.INTL(A1-DAY(A1)+1,A1,"1111110")
C1:C2C1=NETWORKDAYS.INTL(A1-DAY(A1)+1,A1,REPLACE("1111111",WEEKDAY(A1,2),1,"0"))
B2,B4B2=NETWORKDAYS.INTL(A2-DAY(A2)+1,A2,"0111111")
B3B3=NETWORKDAYS.INTL(A3-DAY(A3)+1,A3,"1101111")
C3:C4C3=LET(n,NETWORKDAYS.INTL(A3-DAY(A3)+1,A3,REPLACE("1111111",WEEKDAY(A3,2),1,"0")),n&LOOKUP(n,{0,1,2,3,4},{"th","st","nd","rd","th"}))&TEXT(A3," ddd")
 
Upvote 0
Did you check your formula on a variety of dates?
I am not sure what your exact requirements are.
You can try the following with your data.

Dates_2023.xlsm
ABC
1Sun 21-May-2333
2Mon 29-May-2355
3Wed 31-May-2355th Wed
4Mon 01-May-2311st Mon
5
3e
Cell Formulas
RangeFormula
B1B1=NETWORKDAYS.INTL(A1-DAY(A1)+1,A1,"1111110")
C1:C2C1=NETWORKDAYS.INTL(A1-DAY(A1)+1,A1,REPLACE("1111111",WEEKDAY(A1,2),1,"0"))
B2,B4B2=NETWORKDAYS.INTL(A2-DAY(A2)+1,A2,"0111111")
B3B3=NETWORKDAYS.INTL(A3-DAY(A3)+1,A3,"1101111")
C3:C4C3=LET(n,NETWORKDAYS.INTL(A3-DAY(A3)+1,A3,REPLACE("1111111",WEEKDAY(A3,2),1,"0")),n&LOOKUP(n,{0,1,2,3,4},{"th","st","nd","rd","th"}))&TEXT(A3," ddd")
Thanks
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,263
Members
449,093
Latest member
Vincent Khandagale

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