Archive of Mr Excel Message Board
Can someone suggest a direction. I am not comfortable with macros or vba if there is a function that will do.
Thanks a bunch!

You want to use a pivot table for this. Trust me on this. I know you're recoiling in horror at the thought (LOL) but bear with me. (I just did it with some dummy data, its gorgeous!)
First select your three columns of data, including the headers (your column names, like Date, PuchaseB, PurchaseC). Now click on Data > Pivot Table report and step through the wizard. I don't know which version of Excel you're using so post back if you can't figure it out.
Assuming you do get into the "layout" portion of the wizard, you want to use "Date" as your row field and "PurchB" and "PurchC" as data fields.
Once Excel creates the pivot table, right click on the "Date" tile (as I call that object) and select "Group and Outline" > "Group ...". Chose Days and spin the little spinner button up to 7. Now click Ok and your data should be grouped (summed) by each 7 day period.
You might have noticed when you were in the Grouping dialog box that you can also chose to group by months, quarters, and years. Just change the grouping parameters for your other periods. Or, you can copy the pivot table (hold the Ctrl key while dragging the sheet tab) and reconfigure the copies with the different grouping levels. Or, you can put them all in one pivot table. Whatever you like.
You'll really like this. Give it a try. (Its painless, really, and a lot easier than what you've been doing.) :-))
have fun
