PC Review


Reply
Thread Tools Rate Thread

date calcuation

 
 
gs
Guest
Posts: n/a
 
      12th Jun 2007
how would one express 1st Monday 3 months later?
given start date in a1 as 2007-06-11

adding 3 months is easy: =date(year(a10),month(a1)+3, day)
but how do I make sure if that is not Monday, I grab the coming Monday?


hopefully I don't macro for that


 
Reply With Quote
 
 
 
 
Peo Sjoblom
Guest
Posts: n/a
 
      12th Jun 2007
Here you go, with start date in A10 (you used both A10 and A1)

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



--
Regards,

Peo Sjoblom



"gs" <(E-Mail Removed)> wrote in message
news:uKqAp$(E-Mail Removed)...
> how would one express 1st Monday 3 months later?
> given start date in a1 as 2007-06-11
>
> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
> but how do I make sure if that is not Monday, I grab the coming Monday?
>
>
> hopefully I don't macro for that
>



 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      12th Jun 2007
If you always want it using today's date you can replace A10 with TODAY()


--
Regards,

Peo Sjoblom



"Peo Sjoblom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Here you go, with start date in A10 (you used both A10 and A1)
>
> =DATE(YEAR(A10),MONTH(A10)+3,
> DAY(A10))-WEEKDAY(DATE(YEAR(A10),MONTH(A10)+3, DAY(A10))-2)+7
>
>
>
> --
> Regards,
>
> Peo Sjoblom
>
>
>
> "gs" <(E-Mail Removed)> wrote in message
> news:uKqAp$(E-Mail Removed)...
>> how would one express 1st Monday 3 months later?
>> given start date in a1 as 2007-06-11
>>
>> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
>> but how do I make sure if that is not Monday, I grab the coming Monday?
>>
>>
>> hopefully I don't macro for that
>>

>
>



 
Reply With Quote
 
Dana DeLouis
Guest
Posts: n/a
 
      12th Jun 2007
Not any better, but here was my attempt.

=EDATE(A1,3)+MOD(14,WEEKDAY(EDATE(A1,3),3)+7)

--
Dana DeLouis

"Peo Sjoblom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Here you go, with start date in A10 (you used both A10 and A1)
>
> =DATE(YEAR(A10),MONTH(A10)+3,
> DAY(A10))-WEEKDAY(DATE(YEAR(A10),MONTH(A10)+3, DAY(A10))-2)+7
>
>
>
> --
> Regards,
>
> Peo Sjoblom
>
>
>
> "gs" <(E-Mail Removed)> wrote in message
> news:uKqAp$(E-Mail Removed)...
>> how would one express 1st Monday 3 months later?
>> given start date in a1 as 2007-06-11
>>
>> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
>> but how do I make sure if that is not Monday, I grab the coming Monday?
>>
>>
>> hopefully I don't macro for that
>>

>
>



 
Reply With Quote
 
gs
Guest
Posts: n/a
 
      12th Jun 2007
great, thank you all. wonderful and timely answers
"gs" <(E-Mail Removed)> wrote in message
news:uKqAp$(E-Mail Removed)...
> how would one express 1st Monday 3 months later?
> given start date in a1 as 2007-06-11
>
> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
> but how do I make sure if that is not Monday, I grab the coming Monday?
>
>
> hopefully I don't macro for that
>



 
Reply With Quote
 
gs
Guest
Posts: n/a
 
      12th Jun 2007
Edate is a bit easier to use.


In my case, despite excel 2003 help has edate but excel did not like it
=edate(A1,3) gave me #name?

"Dana DeLouis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Not any better, but here was my attempt.
>
> =EDATE(A1,3)+MOD(14,WEEKDAY(EDATE(A1,3),3)+7)
>
> --
> Dana DeLouis
>
> "Peo Sjoblom" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Here you go, with start date in A10 (you used both A10 and A1)
>>
>> =DATE(YEAR(A10),MONTH(A10)+3,
>> DAY(A10))-WEEKDAY(DATE(YEAR(A10),MONTH(A10)+3, DAY(A10))-2)+7
>>
>>
>>
>> --
>> Regards,
>>
>> Peo Sjoblom
>>
>>
>>
>> "gs" <(E-Mail Removed)> wrote in message
>> news:uKqAp$(E-Mail Removed)...
>>> how would one express 1st Monday 3 months later?
>>> given start date in a1 as 2007-06-11
>>>
>>> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
>>> but how do I make sure if that is not Monday, I grab the coming Monday?
>>>
>>>
>>> hopefully I don't macro for that
>>>

>>
>>

>
>



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      12th Jun 2007
Take a look in Help for what it says about needing to load the Analysis
Toolpak Add-in...

In article <(E-Mail Removed)>,
"gs" <(E-Mail Removed)> wrote:

> Edate is a bit easier to use.
>
>
> In my case, despite excel 2003 help has edate but excel did not like it
> =edate(A1,3) gave me #name?

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      12th Jun 2007
Also note that if you distribute it to other users they must have ATP
installed as well or they will get the same error. That's the reason I
always try to use a built in function when possible


--
Regards,

Peo Sjoblom



"gs" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Edate is a bit easier to use.
>
>
> In my case, despite excel 2003 help has edate but excel did not like it
> =edate(A1,3) gave me #name?
>
> "Dana DeLouis" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Not any better, but here was my attempt.
>>
>> =EDATE(A1,3)+MOD(14,WEEKDAY(EDATE(A1,3),3)+7)
>>
>> --
>> Dana DeLouis
>>
>> "Peo Sjoblom" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Here you go, with start date in A10 (you used both A10 and A1)
>>>
>>> =DATE(YEAR(A10),MONTH(A10)+3,
>>> DAY(A10))-WEEKDAY(DATE(YEAR(A10),MONTH(A10)+3, DAY(A10))-2)+7
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Peo Sjoblom
>>>
>>>
>>>
>>> "gs" <(E-Mail Removed)> wrote in message
>>> news:uKqAp$(E-Mail Removed)...
>>>> how would one express 1st Monday 3 months later?
>>>> given start date in a1 as 2007-06-11
>>>>
>>>> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
>>>> but how do I make sure if that is not Monday, I grab the coming Monday?
>>>>
>>>>
>>>> hopefully I don't macro for that
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
gs
Guest
Posts: n/a
 
      13th Jun 2007
I am not inclined to install the analysis pack either. otherwise I will
also have to install the other 9 PCs.
for now a couple of hidden work rows works wonderfully with date and weekday
functions


"Peo Sjoblom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Also note that if you distribute it to other users they must have ATP
> installed as well or they will get the same error. That's the reason I
> always try to use a built in function when possible
>
>
> --
> Regards,
>
> Peo Sjoblom
>
>
>
> "gs" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Edate is a bit easier to use.
>>
>>
>> In my case, despite excel 2003 help has edate but excel did not like it
>> =edate(A1,3) gave me #name?
>>
>> "Dana DeLouis" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Not any better, but here was my attempt.
>>>
>>> =EDATE(A1,3)+MOD(14,WEEKDAY(EDATE(A1,3),3)+7)
>>>
>>> --
>>> Dana DeLouis
>>>
>>> "Peo Sjoblom" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Here you go, with start date in A10 (you used both A10 and A1)
>>>>
>>>> =DATE(YEAR(A10),MONTH(A10)+3,
>>>> DAY(A10))-WEEKDAY(DATE(YEAR(A10),MONTH(A10)+3, DAY(A10))-2)+7
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Peo Sjoblom
>>>>
>>>>
>>>>
>>>> "gs" <(E-Mail Removed)> wrote in message
>>>> news:uKqAp$(E-Mail Removed)...
>>>>> how would one express 1st Monday 3 months later?
>>>>> given start date in a1 as 2007-06-11
>>>>>
>>>>> adding 3 months is easy: =date(year(a10),month(a1)+3, day)
>>>>> but how do I make sure if that is not Monday, I grab the coming
>>>>> Monday?
>>>>>
>>>>>
>>>>> hopefully I don't macro for that
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date calcuation (another) ShagNasty Microsoft Excel Worksheet Functions 1 21st Dec 2008 10:06 PM
Date Calcuation with Blank Cells PT40 Microsoft Excel Worksheet Functions 5 7th Jan 2008 08:47 PM
Disalbe the Calcuation in Excel after vaildety date Vikky Microsoft Excel Worksheet Functions 0 31st Jul 2006 10:22 AM
date - # of days calcuation =?Utf-8?B?RG9ubmE=?= Microsoft Access Queries 6 7th Jun 2005 04:27 AM
Calcuation =?Utf-8?B?YWdncmVnYXRlIHN1bSBvdmVyIHRoZSBwZXJpb2Rz Microsoft Access 10 17th Mar 2005 01:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:12 AM.