Not really a weeknumber but a weeksequence in the month that your looking for.
Where days 1 to 7 is week 1, days 8 - 14 week 2 and so on?
Using week() means that it looks at calendar weeks and not 1-7 is week 1.
If its always a month that is selected you can simply use
=ceil(DayNumberOfMonth(date)/7)
If you can select more months I would suggest adding monthnumber infront:
=formatnumber(MonthNumberOfYear(date);“00”) + formatnumber(ceil(DayNumberOfMonth(date)/7);“00”)
Become 0105, or 1101 etc.
(Check if its 00 or ## to get 2chars, i always forget)
And if you go over years add that the last 2 from year infront of it aswell.
100105, 101101, 110402
year - month in year - week in month
thanks so much for your reply, i am not getting the point clear. can you pls explain me.
My objective is i have to display the week name for the given date range.