Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Calculating the last day of the week

Anyone know how to calculate the last day of a calendar week? Assuming
that you have a date in A1, I need to calculate the last day of the week
(Sunday is first day), for the week that contains the date in A1.

Cheers,

Job


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Calculating the last day of the week

If you have a date in date format in cell A1, in cell A2, put
=A1+6
Did I misunderstand you?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Calculating the last day of the week

=A1+(7-WEEKDAY(A1))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Job" wrote in message
...
Anyone know how to calculate the last day of a calendar week? Assuming
that you have a date in A1, I need to calculate the last day of the week
(Sunday is first day), for the week that contains the date in A1.

Cheers,

Job




  #4   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Calculating the last day of the week

Thanks Bob, this works. Or =A1+7-WEEKDAY(A1)


Cheers

"Bob Phillips" wrote in message
...
=A1+(7-WEEKDAY(A1))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Job" wrote in message
...
Anyone know how to calculate the last day of a calendar week? Assuming
that you have a date in A1, I need to calculate the last day of the week
(Sunday is first day), for the week that contains the date in A1.

Cheers,

Job






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
Calculating a week between a range of dates Terry Tibbs Excel Discussion (Misc queries) 3 April 13th 10 12:24 PM
Calculating tasks using a six day work week Steve22055 Excel Discussion (Misc queries) 1 March 25th 09 05:00 PM
Calculating the first day of the week jimbo New Users to Excel 5 December 30th 08 02:51 PM
Calculating days of week HBYardSale Excel Programming 7 April 19th 04 04:21 AM
Calculating the first day of the week for the month Justin[_6_] Excel Programming 2 August 20th 03 09:10 PM


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

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

About Us

"It's about Microsoft Excel"