View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Earl Kiosterud Earl Kiosterud is offline
external usenet poster
 
Posts: 611
Default New Years Day formula?

Richard,

I haven't tested this real thoroughly, but it seems to work:

=DATE(TheYear,1,1)+CHOOSE(WEEKDAY(DATE(TheYear,1,1 ),2),0,0,0,0,0,2,1)

--
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Richard" wrote in message
...
This there a formula for calling up the first Monday if January 1st falls
on
a weekend? Here's what I use now. It works fine as long as Jan 1st falls
on a
Sunday but doesn't work if Jan 1st falls on a Saturday which is 2011.
=DATE(TheYear,1,1)+CHOOSE(WEEKDAY(DATE(TheYear,1,1 ),1),1,0,0,0,0,0,-1)
Thanks in Advance!