date to show then end of the week

P

Pendelfin

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
 
G

Gary''s Student

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.
 
H

Hugh

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top