Need to sum up daily data into weekly automatically

solo9999

Board Regular
Joined
May 23, 2011
Messages
82
Hi all,

Happy & Healthy New Year! :)

I have the following scenario:I have an Excel sheet where data is entered daily in the following format:

.......A............B
01/01/2013 | 1,750
01/02/2013 | 2,350
01/03/2013 | 8,150
...etc...

What I want to do is a weekly data summary, that will scan through the dates and sum up only the values which date belongs to the respective week:

WK1 (01/01 to 01-06): sum all B values for that date range
WK2 (01/07 to 01/13): sum all B value for that date range

How can this be done?:confused:

Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
What if you create a formula over the date to return the week number? Then create a pivot table to group by the week number and sum the values?

That's the quick and dirty using WEEKNUM(A2) to return 1, 2, ..., but if you want it to have "fancier" formatting (such as "WK1 (1/1 to 1/6)") then you'd have a bit more work to get the expression to "look" the way you want.

But perhaps that's what you're looking for? :cool:
 
Upvote 0
You can use a pivot table too. Create the pivot, add your dates to the Row Labels area, right-click one of the dates in the pivot and Group.
Pick Days only, and adjust the spinner on the dialog to 7.

Now build the rest of the pivot table to summarise your sales / values.

Denis
 
Upvote 0

Forum statistics

Threads
1,215,945
Messages
6,127,844
Members
449,411
Latest member
adunn_23

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