Sir,may be the following formula can help you...
=IF(IF(MONTH(E5)=1,WEEKNUM(E5),WEEKNUM(E5-1)-WEEKNUM(E5-DAY(E5)-6))=0,1,IF(MONTH(E5)=1,WEEKNUM(E5),WEEKNUM(E5-1)-WEEKNUM(E5-DAY(E5)-6)))
late me know
Hi ,
You have not mentioned which of the two you want :
1. Given a table of dates , whether you want the result you have shown in column D
2. Given any date , you want the correct week number according to the result you have shown
I am attaching a file which gives 1 ; if you want 2 , what I suggest is just extend your existing table of dates , and the formula ; thereafter , given any date , you can just lookup the week number from the table.
Narayan
Sir,Hi ,
I am sorry , but I am not able to understand the logic behind your week numbering. Please explain why January 28 is week number 5 , while April 29 is week number 1. July 29 is week number 1 , while October 28 is week number 5.
Narayan