A challenge for the excel users:
I have a table with the following columns:
Year || Week || Output
2011 || 50 || 1000
2011 || 51 || 2000
2011 || 52 || 1500
2012 || 01 || 1200
2012 || 02 || 1700
2012 || 03 || 1900
I want to sum the values on the column output that are between a given year/week and another year/week. Example:
- between 2011/50 and 2011/52. Result = 1000+2000+1500 = 4500
- between 2011/51 and 2012/02. Result = 2000+1500+1200+1700 = 6400
Thank you all in advance.
Regards,
MH
My steps:
{Year}*100 + {Week}{Year}*100 + {Week}) —<LOW>&<HIGH>.=IF(AND(C2>=<LOW>,C2<=<HIGH>),1,0)*E2Then the summation cell becomes:
=SUM(D:D)EDIT: Found another way with no
Dcolumn from above=SUMIFS(E:E,C:C, CONCATENATE(">=", $N$2),C:C, CONCATENATE("<=", $O$2))