PC Review


Reply
Thread Tools Rate Thread

Converting Dates to Week Ending time period

 
 
drew
Guest
Posts: n/a
 
      20th Jun 2008
I am trying to convert a specific date to a Week Ending value. The week
starts on Saturday and ends on Friday for this example.

So.. any value from 6/14 through 6/20 would return a value of week ending
6-20-2008. Any suggestions? Thanks!
 
Reply With Quote
 
 
 
 
vezerid
Guest
Posts: n/a
 
      20th Jun 2008
One way: for a date in A2, next Friday:

=CEILING(A2+1,7)-1

HTH
Kostis Vezerides

On Jun 20, 4:18 pm, drew <d...@discussions.microsoft.com> wrote:
> I am trying to convert a specific date to a Week Ending value. The week
> starts on Saturday and ends on Friday for this example.
>
> So.. any value from 6/14 through 6/20 would return a value of week ending
> 6-20-2008. Any suggestions? Thanks!


 
Reply With Quote
 
Tim879
Guest
Posts: n/a
 
      20th Jun 2008
try this formula. It assumes the date you want to convert (i.e. 6/14)
is in cell A14. It will always return the Friday following the date
you enter. If you enter a Friday, it will return the same date.

=+A14+7-IF(WEEKDAY(A14,1)=6,1,IF(WEEKDAY(A14,1)=7,2,WEEKDAY(A14,1)+2))


On Jun 20, 9:18 am, drew <d...@discussions.microsoft.com> wrote:
> I am trying to convert a specific date to a Week Ending value. The week
> starts on Saturday and ends on Friday for this example.
>
> So.. any value from 6/14 through 6/20 would return a value of week ending
> 6-20-2008. Any suggestions? Thanks!


 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      20th Jun 2008
=A1-WEEKDAY(A1+1,1)+7
--
Gary''s Student - gsnu200793
 
Reply With Quote
 
Sandy Mann
Guest
Posts: n/a
 
      20th Jun 2008
I like it!
--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"vezerid" <(E-Mail Removed)> wrote in message
news:477f0304-5775-4a42-b34e-(E-Mail Removed)...
> One way: for a date in A2, next Friday:
>
> =CEILING(A2+1,7)-1
>
> HTH
> Kostis Vezerides
>
> On Jun 20, 4:18 pm, drew <d...@discussions.microsoft.com> wrote:
>> I am trying to convert a specific date to a Week Ending value. The week
>> starts on Saturday and ends on Friday for this example.
>>
>> So.. any value from 6/14 through 6/20 would return a value of week ending
>> 6-20-2008. Any suggestions? Thanks!

>
>



 
Reply With Quote
 
drew
Guest
Posts: n/a
 
      20th Jun 2008
This worked! Thanks folks!!

"Tim879" wrote:

> try this formula. It assumes the date you want to convert (i.e. 6/14)
> is in cell A14. It will always return the Friday following the date
> you enter. If you enter a Friday, it will return the same date.
>
> =+A14+7-IF(WEEKDAY(A14,1)=6,1,IF(WEEKDAY(A14,1)=7,2,WEEKDAY(A14,1)+2))
>
>
> On Jun 20, 9:18 am, drew <d...@discussions.microsoft.com> wrote:
> > I am trying to convert a specific date to a Week Ending value. The week
> > starts on Saturday and ends on Friday for this example.
> >
> > So.. any value from 6/14 through 6/20 would return a value of week ending
> > 6-20-2008. Any suggestions? Thanks!

>
>

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      20th Jun 2008
On Fri, 20 Jun 2008 06:29:46 -0700 (PDT), vezerid <(E-Mail Removed)> wrote:

>One way: for a date in A2, next Friday:
>
>=CEILING(A2+1,7)-1
>
>HTH
>Kostis Vezerides


That only works with the 1900 date system. With the 1904 date system, commonly
used on Mac's, it will not give the correct answer.
--ron
 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      20th Jun 2008
On Fri, 20 Jun 2008 06:18:01 -0700, drew <(E-Mail Removed)>
wrote:

>I am trying to convert a specific date to a Week Ending value. The week
>starts on Saturday and ends on Friday for this example.
>
>So.. any value from 6/14 through 6/20 would return a value of week ending
>6-20-2008. Any suggestions? Thanks!




=A1+7-WEEKDAY(A1+1)


--ron
 
Reply With Quote
 
vezerid
Guest
Posts: n/a
 
      24th Jun 2008
You are right Ron, thanks for the pointer.

Kostis

On Jun 20, 5:21 pm, Ron Rosenfeld <ronrosenf...@nospam.org> wrote:
> On Fri, 20 Jun 2008 06:29:46 -0700 (PDT),vezerid<veze...@act.edu> wrote:
> >One way: for a date in A2, next Friday:

>
> >=CEILING(A2+1,7)-1

>
> >HTH
> >Kostis Vezerides

>
> That only works with the 1900 date system. With the 1904 date system, commonly
> used on Mac's, it will not give the correct answer.
> --ron


 
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
Convert regular Date to Week Ending or Week Beginning Dates Sam H Microsoft Excel Misc 4 27th Jan 2010 03:27 PM
Entering week ending dates =?Utf-8?B?SmVuaWxpc2U=?= Microsoft Excel Misc 3 14th Sep 2007 12:04 AM
How to format cells to show dates as the week-ending date of that =?Utf-8?B?ZGVyZWtzbW9t?= Microsoft Excel Worksheet Functions 1 12th Jul 2006 04:40 PM
Week Ending Dates =?Utf-8?B?SGFuc2ZvcmQgY29ybmV0dA==?= Microsoft Access Forms 2 29th Dec 2004 05:24 PM
Add new sheets with week ending dates =?Utf-8?B?Y290dGFnZTY=?= Microsoft Excel Programming 2 17th Nov 2004 04:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 AM.