Converting Daily Outputs into Weekly Outputs

MichaelBitton

New Member
Joined
Dec 26, 2021
Messages
1
Platform
  1. Windows
I have a sheet of daily outputs for various people. I then compile the weekly sums and averages in a separate sheet.

Doing this for a single week is easy - you can sum C1:G1 to get John's number and then copy/paste it down to the other people.

But when I copy/paste the C11 formula to the next week, the default formula would be the sum of D1:H1 - it would offset 1 day instead of by the 5 days that I want. How can I automate this difference so that I'm not always manually changing the column letters?


A1B1C1D1E1F1G1H1I1J1K1L1
A2
01-Dec​
02-Dec​
03-Dec​
04-Dec​
05-Dec​
08-Dec​
09-Dec​
10-Dec​
11-Dec​
12-Dec​
A3MondayTuedayWednesdayThursdayFridayMondayTuedayWednesdayThursdayFriday
A4john
5​
6​
10​
20​
1​
4​
14​
6​
15​
12​
A5dave
2​
7​
15​
20​
0​
9​
12​
35​
0​
23​
A6michael
3​
0​
12​
0​
22​
31​
0​
17​
0​
21​
A7alicia
8​
20​
0​
50​
29​
5​
0​
12​
82​
0​
A8
12​
45​
31​
19​
0​
66​
21​
14​
4​
5​
A9
A10Dec 1 - 5Dec 8 - 12Dec 15 - 19
A11john
42​
A12dave
44​
A13michael
37​
A14alicia
107​
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
you can do this with power query also called Get and Transform Data depending upon the version of Excel you are using.

Unpivot your data and then convert the date to week number. Once you have the week number you can group by the week and person. If you are willing to upload your sample data using XL2BB so that the formatting is correct, I will create the Mcode for you. If you are unfamiliar with XL2BB, look at my signature.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

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