View Single Post
  #4  
Old March 16th, 2010, 02:19 PM posted to microsoft.public.excel.worksheet.functions
Ted[_15_]
external usenet poster
 
Posts: 10
Default Monday closest to today's date?

Thank you;

While I did not say so, I need to do the same for each day of the week. If
I change the '3' in the formula to 1, it returns Saturday, March 20. Change
it to 2 and it returns Sunday March 21. That is good. But if I change it
to 4, in the hopes it will return Tuesday, March 23, I get an error. Same
if I change it to 6 in the hopes it returns Thursday, March 18.


What am I missing?

Thanks again.

"zxcv" wrote in message
...
On Mar 16, 9:50 am, "Ted" wrote:
Hello:

I am seeking a formula that would return the date of the closest Monday
to
today's date. The monday would have to be the first one in the future,
not
the past. So today, Tuesday March 16, 2010, the formula would return
Monday, March 22, 2010

Thanks in advance


How about this?

=DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY())+7-WEEKDAY(TODAY(),3))