How to align days of week, by week, when comparing current year to previous years?

dbmagnus

New Member
Joined
Jul 27, 2016
Messages
3
I need to compare sales volumes YoY by week. However I want to ensure the days of week are aligned (i.e. Sun of week x in 2017 = Sun of same week in 2016). I want the values on the X-axis to be week ending Saturday for the current year. The formula for week ending Saturday which I'm using is: =A1+(7-WEEKDAY(A1))

For example: lets look in 2017 at week ending sat of 2/4/17 (1/29-2/4). For 2016, the week which aligns has a week ending of 2/6/16 (1/31-2/6). And for 2015 the corresponding week has a week ending sat of 2/7/15 (2/1-2/7).

How do I align the 2016 and 2015 weeks to match the days of week with the current year (2017)? I need "adjust" 2016 by 2 days and 2017 by 1 day so all of the Sundays-to-Saturdays are aligned, so I'm comparing apples to apples.

Is there a formulaic way of doing this? Or do I have to maintain a formula to manually adjust days based on a given year?

Thanks in advance for your thoughts. Dan
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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