Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Richard
With your date in cell A1 =A1+(MAX(0,2-MOD(A1,7))) seems to produce the result you want. -- Regards Roger Govier "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! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks so much, It works great. How the heck do you guys do it!!!!
"Earl Kiosterud" wrote: 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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match then lookup | Excel Worksheet Functions | |||
How do i convert years to months (formula) | Excel Worksheet Functions | |||
how to calculate years, months by using one formula | Charts and Charting in Excel | |||
how do i enter data for a # of years using a formula? | Excel Discussion (Misc queries) | |||
how do i enter data for a # of years using a formula? | Excel Discussion (Misc queries) |