Help with looking the nearest Sunday
On Fri, 7 Apr 2006 11:36:01 -0700, JR wrote:
Hi,
I currently use this formula to populate teh nearest Friday to today:
=TEXT(A13+LOOKUP(WEEKDAY(A13),{1,2,3,4,5,6,7},{-2,-3,3,2,1,0,-1}),"mm/dd/yyyy")
How do I change the formula so that it will caluclate the nearest Sunday?
Thanks for the help.
You could also use the formula:
=A1-WEEKDAY(A1)+1+7*(WEEKDAY(A1)4)
and format the cell as a date.
--ron
|