Last week start and end dates

craig80

Board Regular
Joined
May 18, 2010
Messages
51
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am working with EOMONTH and a few other functions. But can't seem to work out how to get last working week.<o:p></o:p>
<o:p></o:p>
I have a Marco that opens some template wbs, pulls data in from a source, then calculates based on dates in predefined fields.<o:p></o:p>
<o:p></o:p>
I want to have these dates to be a working week. i.e Mon-Sunday.<o:p></o:p>
<o:p></o:p>
Can anyone help me with a formula that will fit this requirement.<o:p></o:p>
<o:p></o:p>
Thanks<o:p></o:p>
Craig
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Do you mean last working week - as in last week based on todays date, or last week based on end of month date?

For last Monday and last Friday:
Code:
=TODAY()-WEEKDAY(TODAY(),3)-7

=TODAY()-WEEKDAY(TODAY(),3)-3

For last full week of month:
Code:
=EOMONTH(TODAY(),0)-WEEKDAY(EOMONTH(TODAY(),0),3)-7

=EOMONTH(TODAY(),0)-WEEKDAY(EOMONTH(TODAY(),0),3)-3
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top