I have a worksheet with the following 3 columns on Sheet 1:
ID Week# CodeCreateTime
16972 39 4
16980 39 4
19117 39 2
19146 40 2
22362 41 10
20890 41 5
I want to:
Find all items that match in the 'Week#' column
Sum their values in the 'CodeCreateTime' column
Copy the week# and summed value onto Sheet 2 in Column A.
For example, using the above data from Sheet 1, Sheet 2 would have the following values in column A and B:
A B
39 10
40 2
41 15
Will a sumif(match) work? I have been playing and not having luck.
SUMIF
function alone will already do the trick. – VBA Pete=SUMIF(Sheet1!$B$1:$B$6,Sheet2!A1,Sheet1!$C$1:$C$6)
– cyboashu=SUMIF(B:B,39,C:C)
would be an example for week 39 if you week is column B and your CodeCreateTime column is in column C. – VBA Pete