Calculate qty produced each week from daily data

PHolt

New Member
Joined
Aug 2, 2010
Messages
32
Hi,

I have 2 worksheets one daily and 2nd for weekly. I look for the week number using WEEKNUM

Daily sheet look like this
[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Date[/TD]
[TD]Week Number[/TD]
[TD]Time Taken[/TD]
[TD]Qty Completed[/TD]
[TD]Row No[/TD]
[/TR]
[TR]
[TD]26/02/2013[/TD]
[TD]9[/TD]
[TD]65.00[/TD]
[TD]25[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]26/02/2013[/TD]
[TD]9[/TD]
[TD]435.00[/TD]
[TD]183[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]27/02/2013[/TD]
[TD]9[/TD]
[TD]310.00[/TD]
[TD]500[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]27/02/2013[/TD]
[TD]9[/TD]
[TD]18.00[/TD]
[TD]30[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]28/02/2013[/TD]
[TD]9[/TD]
[TD]165.00[/TD]
[TD]36[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]04/03/2013[/TD]
[TD]10[/TD]
[TD]30.00[/TD]
[TD]3[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]04/03/2013[/TD]
[TD]10[/TD]
[TD]100.00[/TD]
[TD]62[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]05/03/2013[/TD]
[TD]10 weeknum(A9,1)[/TD]
[TD]258.00[/TD]
[TD]124[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]05/03/2013[/TD]
[TD]10[/TD]
[TD]147.00[/TD]
[TD]169[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]05/03/2013[/TD]
[TD]10[/TD]
[TD]159.00[/TD]
[TD]87[/TD]
[TD]11[/TD]
[/TR]
</TBODY>[/TABLE]

Weekly Sheet

[TABLE="class: grid, width: 500"]
<TBODY>[TR]
[TD]Week Commencing[/TD]
[TD]Week Number[/TD]
[TD]Total time taken[/TD]
[TD]total qty completed[/TD]
[/TR]
[TR]
[TD]25/02/2013[/TD]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]01/03/2013[/TD]
[TD]10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/03/2013[/TD]
[TD]11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]


I have tried using a sumif formula, if week numbers match, total the time taken. But this isn't working. For example for calculating week 9 it would also include the data from row 9 because there is a 9 in the weeknum formula.

I think I may have to use SUMPRODUCT, but have never used this before. can some help please?

Thanks
Pam
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Sumif should work:


Excel 2010
ABCDE
1DateWeek NumberTime TakenQty CompletedRow No
226/02/13965252
326/02/1394351833
427/02/1393105004
527/02/13918305
628/02/139165366
704/03/13103037
804/03/1310100628
905/03/13102581249
1005/03/131014716910
1105/03/13101598711
12
13
14
15
16
17
18
19Week CommencingWeek NumberTotal time takentotal qty completed
2025/02/139993774
2101/03/1310694445
2208/03/131100
Sheet1
Cell Formulas
RangeFormula
B2=WEEKNUM(A2,1)
B3=WEEKNUM(A3,1)
B4=WEEKNUM(A4,1)
B5=WEEKNUM(A5,1)
B6=WEEKNUM(A6,1)
B7=WEEKNUM(A7,1)
B8=WEEKNUM(A8,1)
B9=WEEKNUM(A9,1)
B10=WEEKNUM(A10,1)
B11=WEEKNUM(A11,1)
C20=SUMIF($B$2:$B$11,B20,$C$2:$C$11)
C21=SUMIF($B$2:$B$11,B21,$C$2:$C$11)
C22=SUMIF($B$2:$B$11,B22,$C$2:$C$11)
D20=SUMIF($B$2:$B$11,B20,$D$2:$D$11)
D21=SUMIF($B$2:$B$11,B21,$D$2:$D$11)
D22=SUMIF($B$2:$B$11,B22,$D$2:$D$11)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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