Need a hand with date calc
Will this work?
Sub dt()
MsgBox DateDiff("ww", Range("A2").Value, Range("A3").Value)
End Sub
"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
|