Forum

Notifications
Clear all

Required to Start the on Sunday once you select Month

4 Posts
3 Users
0 Reactions
164 Views
(@reza)
Posts: 9
Active Member
Topic starter
 

I have drop list for Month and Year.

My challenge is, To select any month for any Year and Date to Start From Sunday onwards.

The second challenge is, I have Table and on column E8 "Date" has formula. If I want to add more name it does not update the formula. My excel setting is on Automatic refresh.

 

Please advise..

 

Thanks Redha

 
Posted : 28/03/2021 12:22 pm
(@purfleet)
Posts: 412
Reputable Member
 

if i have understood correctly you want the date of the first sunday in the month selected?

Does this work for you?

=D2+MATCH("Sunday",TEXT(ROW(INDIRECT(D2&":"&D2+6)),"DDDD"),0)-1

 
Posted : 28/03/2021 5:27 pm
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

An alternative formula to get the date for the first Sunday in the month. Depending on your system date setting you might need to change the last number in the formula. More info about this can be found here.

=DATE(E4,MONTH(E2&1),7)-WEEKDAY(DATE(E4,MONTH(E2&1),1)-1,2)

Br,
Anders

 
Posted : 28/03/2021 7:01 pm
(@reza)
Posts: 9
Active Member
Topic starter
 

Thank you so much, works perfectly.

 
Posted : 29/03/2021 5:34 am
Share: