Formula help needed please
Hi Bob,
Am Thu, 27 Dec 2012 09:47:12 -0800 (PST) schrieb Bob Newman:
Excel 2010. I have a database containing one line for each date and several columns corresponding to that date. I am trying to create a table that shows the totals in each column for each WEEK of 2013. ie the totals for Jan. 1 through January 7 and so on. I know the sumif formula but am not sure how to total it on a weekly basis. Any help would be appreciated.
your date in column A, your values in column B then in C2:
=SUM(IF($A$2:$A$367<"",(TRUNC(($A$2:$A$367-WEEKDAY($A$2:$A$367,2)-DATE(YEAR($A$2:$A$367+4-WEEKDAY($A$2:$A$367,2)),1,-10))/7)=ROW(A1))*(YEAR($A$2:$A$367)=2012)*$B$2:$B$367))
Enter the array formula with CTRL+Shift+ Enter and copy down
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
|