Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default date to show then end of the week

Hi

I am trying to carryout some calcualtions on dates to show the day before
the next working day.

Is there a formula I can use so for example if the date is Friday 3 January
2009 it will show Sunday 5 January - or alternativly if easter weekend the
last working day would be Thursday 8 April 2009 so the date shown would be
Monday 12 April 2009?

Many thanks in advance for your help

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default date to show then end of the week

If A1 contains a date, then:

=A1+CHOOSE(WEEKDAY(A1),0,6,5,4,3,2,1)

will give you the date of the upcoming Sunday
If A1 contains a Sunday, the fomula will return A1

If the Monday following the Sunday is a holiday, then just add one, etc.
--
Gary''s Student - gsnu200830


"Pendelfin" wrote:

Hi

I am trying to carryout some calcualtions on dates to show the day before
the next working day.

Is there a formula I can use so for example if the date is Friday 3 January
2009 it will show Sunday 5 January - or alternativly if easter weekend the
last working day would be Thursday 8 April 2009 so the date shown would be
Monday 12 April 2009?

Many thanks in advance for your help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default date to show then end of the week

Thanks Gary.
By changing the "+" to a "-", I was able to use your formula to find the
"week commencing" date for any date entered in A1.

"Gary''s Student" wrote:

If A1 contains a date, then:

=A1+CHOOSE(WEEKDAY(A1),0,6,5,4,3,2,1)

will give you the date of the upcoming Sunday
If A1 contains a Sunday, the fomula will return A1

If the Monday following the Sunday is a holiday, then just add one, etc.
--
Gary''s Student - gsnu200830


"Pendelfin" wrote:

Hi

I am trying to carryout some calcualtions on dates to show the day before
the next working day.

Is there a formula I can use so for example if the date is Friday 3 January
2009 it will show Sunday 5 January - or alternativly if easter weekend the
last working day would be Thursday 8 April 2009 so the date shown would be
Monday 12 April 2009?

Many thanks in advance for your help

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
How to show the day of the week sjames Excel Discussion (Misc queries) 1 December 26th 07 10:59 PM
Display "this week" column headers w/date & day of week? Ivan Wiegand Excel Worksheet Functions 9 September 12th 07 05:18 PM
How to format cells to show dates as the week-ending date of that dereksmom Excel Worksheet Functions 1 July 12th 06 04:40 PM
How do I get a cell to show the day of the week when date entered Captain Excel Discussion (Misc queries) 9 December 27th 05 06:45 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


All times are GMT +1. The time now is 12:11 PM.

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"