Find previous start and end date base on current Start & End Date and Week number?

Sochen

Board Regular
Joined
Dec 6, 2022
Messages
66
Office Version
  1. 2021
Platform
  1. Windows
How to find Start & End date of previous year (Yellow Highlight) base on current Start & End Date and Week number?

Book5
ABCD
1ExampleStart DateEnd DateWeek Number
21Monday, December 27, 2021Sunday, January 2, 202252
3Monday, December 21, 2020Sunday, December 27, 202052
4
5ExampleStart DateEnd DateWeek Number
62Monday, December 25, 2023Sunday, December 31, 202352
7Monday, December 26, 2022Sunday, January 1, 202352
Sheet1
Cell Formulas
RangeFormula
D6:D7,D2:D3D2=ISOWEEKNUM(B2)
C3C3=B3+6
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
B3:
Excel Formula:
=(B2-365)-WEEKDAY(B2-365,2)+1
C3:
Excel Formula:
=(C2-365)-WEEKDAY(C2-365,2)
 
Upvote 0
B3:
Excel Formula:
=(B2-365)-WEEKDAY(B2-365,2)+1
C3:
Excel Formula:
=(C2-365)-WEEKDAY(C2-365,2)
Hi Sir,

Thank you for your response. But this formula is not working in example 2 because it shows different week number.
 
Upvote 0
OK sorted. B3:
Excel Formula:
=DATE(YEAR(B2)-1,1,-2)-WEEKDAY(DATE(YEAR(B2)-1,1,3))+ISOWEEKNUM(B2)*7
C3 is a bit more tricky:
Excel Formula:
=DATE(YEAR(C2)-(1+FLOOR(1/MONTH(C2),1)),1,-2)-WEEKDAY(DATE(YEAR(C2)-(1+FLOOR(1/MONTH(C2),1)),1,3))+ISOWEEKNUM(C2)*7+6
1674107390174.png
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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