Seeking help to our gurus here.
I would like to get the Day1 of the month and every Monday of the succeeding weeks using a formula. I uploaded the a sample with the expected results in column C.
Thank you.
Seeking help to our gurus here.
I would like to get the Day1 of the month and every Monday of the succeeding weeks using a formula. I uploaded the a sample with the expected results in column C.
Thank you.
In C2 copied down:
=IF(DAY(B2)=1,B2,IF(WEEKDAY(B2,2)>1,C1,C1+COUNTIF(C$1:C1,C1)))
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
Correction:
=IF(B1="Date",B2,IF(WEEKDAY(B2,2)>1,C1,C1+COUNTIF(C$1:C1,C1)))
... or
=MAX(B2-CHOOSE(WEEKDAY(B2,2),0,1,2,3,4,5,6),EOMONTH(B2,-1)+1)
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
I like that, Glenn!![]()
Try:
=MAX(B2-WEEKDAY(B2,2)+1,EOMONTH(B2,-1)+1)
Or:
=MAX(FLOOR(B2-2,7)+2,B2-DAY(B2)+1)
Try this. In D2 then drag down.
=MAX(B2-WEEKDAY(B2,2)+1,EOMONTH(B2,-1)+1)
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
Appreciated all your help guys. Thank you!
You're welcome!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks