Hi,
How to make the following as a Macro Function so I can call it with WeekNo(A1) where A1 would contain the Date...
=IFERROR(INT((DATEDIF((DATE(YEAR(A1),4,6)-WEEKDAY(DATE(YEAR(A1),3,31))-7), A1, "d") / 7))+1,INT((DATEDIF((DATE(YEAR(A1)-1,4,6)-WEEKDAY(DATE(YEAR(A1)-1,3,31))-7), A1, "d") / 7))+1)
Thanks
»bp