Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ken Espo
 
Posts: n/a
Default Using a col of Dates by day I want to determine a wk ending date.

Using a column of Dates by day I want to determine a wk ending date (sat
date) for each date, based on comparing that date to a range of dates that
are Sun thru Sat.

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

=A1+7-WEEKDAY(A1)

HTH
Jason
Atlanta, GA

-----Original Message-----
Using a column of Dates by day I want to determine a wk

ending date (sat
date) for each date, based on comparing that date to a

range of dates that
are Sun thru Sat.

.

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Assume the dates start in A1,

=A1+7-MOD(WEEKDAY(A1),8)

copy down as long as needed


--

Regards,

Peo Sjoblom

"Ken Espo" <Ken wrote in message
...
Using a column of Dates by day I want to determine a wk ending date (sat
date) for each date, based on comparing that date to a range of dates that
are Sun thru Sat.



  #4   Report Post  
Myrna Larson
 
Posts: n/a
Default

Hi, Peo:

Why MOD(WEEKDAY(A1),8) rather than just WEEKDAY(A1)? For a series of dates,
Sun thru Sat, they both give the same answer.


On Thu, 3 Feb 2005 12:26:35 -0700, "Peo Sjoblom" wrote:

Assume the dates start in A1,

=A1+7-MOD(WEEKDAY(A1),8)

copy down as long as needed


  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Hi Myrna,

I know, but if the date is on a Saturday and you always want the next
Saturday it's easy
to change to =A1+7-MOD(WEEKDAY(A1),7)

if A1 holds 02/05/05 then the above will return 02/12/05 and I find it easy
to change

and you can't change =A1+7-WEEKDAY(A1) as easily

--

Regards,

Peo Sjoblom

"Myrna Larson" wrote in message
...
Hi, Peo:

Why MOD(WEEKDAY(A1),8) rather than just WEEKDAY(A1)? For a series of

dates,
Sun thru Sat, they both give the same answer.


On Thu, 3 Feb 2005 12:26:35 -0700, "Peo Sjoblom" wrote:

Assume the dates start in A1,

=A1+7-MOD(WEEKDAY(A1),8)

copy down as long as needed






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a col of Dates by day I want to determine a wk ending date. Ken Espo Excel Worksheet Functions 1 February 3rd 05 08:09 PM
Range of dates determine days DNSNIDER Excel Worksheet Functions 2 December 24th 04 03:07 AM
Formula to determine a future date based on criteria David Excel Worksheet Functions 2 December 15th 04 07:51 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM
Lookup a date between other dates spalmarez Excel Worksheet Functions 4 November 2nd 04 09:06 AM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"