Rouding Dates to beginning of a week

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have previously been using weeknum function to produce reports in week
number order. Users now wish to see the actual start date of each week. Is
there a standard function to do this or do I need to create an algorithm?

Regards
 
Assuming the date is in A1, and the week starts on a Monday, then

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

--

HTH

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

Assuming the actual start date of each week is Monday and you are not using
the 1904 date system then:

With any date within the the target week in A1

=A1-WEEKDAY(A1,3) will give the Monday start date. If the starting date is
a Sunday then it will give the previous Monday. If you want a Sunday to
show the next Monday, (ie the next day) then use:

=A1-WEEKDAY(A1,1)+2


HTH

Sandy
 

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

Back
Top