Last full week

Svgmassive

Board Regular
Joined
Nov 2, 2010
Messages
113
I am looking for a function that would return the last full week of the year.
thanks.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You're going to need to provide more information...

Specifically, how do you define a full week??

Is it simply from Sunday to Saturday
Or Monday to Sunday
Or Monday to Friday
?

What exactly do you want to do once the last full week is found?
do you just want a list of all 7 dates within that week?


Assuming you mean a full week is Sunday to Saturday..
And you mean of the Current year..

Then put this in a cell, say A1
=DATE(YEAR(TODAY())+1,1,MATCH(7,WEEKDAY(DATE(YEAR(TODAY())+1,1,{1,2,3,4,5,6,7})),0))-13

That gives you the Sunday of the last full week
Then in A2 put
=A1+1
And fill down to A7


Hope that helps.
 
Upvote 0
Just put WeekNum around the formula...

=WEEKNUM(DATE(YEAR(TODAY())+1,1,MATCH(7,WEEKDAY(DATE(YEAR(TODAY())+1,1,{1,2,3,4,5,6,7})),0))-13)


The Weeknum function requires the analysis toolpack from Tools - Addins.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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