On Mar 1, 8:34*pm, kirkm wrote:
Hi,
I'm having a bit of trouble getting this right.
A date is entered.
I want to know the closest match that is an absoluite
week from a *starting Date of Dec 30 1939
e.g, say the Date entered is 19 Jan 1940 or 21 Jan 1940
the answer I want is 20 Jan 1940.
Any help appreciated
Thanks - Kirk
try this
=DATE(YEAR(E1),MONTH(E1),DAY(E1)+CHOOSE(WEEKDAY(E1 ),
1,0,-1,-2,-3,3,2,1))
Check out Dave McRitchie's site
http://www.mvps.org/dmcritchie/excel/datetime.htm