jardenp
Active Member
- Joined
- May 12, 2009
- Messages
- 373
- Office Version
- 2019
- 2016
- 2013
- 2011
- 2010
- Platform
- Windows
A | B | C | D | E | |
1/1/2012 | 1 | 1/1/2012 | Expected result: 4 (1+3) | ||
1/8/2012 | 3 | 2/1/2012 | Expected result: 12 (7+5) | ||
2/2/2012 | 5 | 3/1/2012 | Expected result: 9 (9) | ||
2/7/2012 | 7 | 1/1/2013 | Expected result: 11 (11) | ||
3/2/2012 | 9 | 2/1/2013 | Expected result: 28 (13+15) | ||
1/2/2013 | 11 | ||||
2/3/2013 | 13 | ||||
2/4/2013 | 15 |
<tbody>
</tbody>
What I'm trying to accomplish is that the cells in Column E return the sum of values in Column B for all rows where the month and year of Column A matches the month and year of the adjacent cell in Column D. For example, The formula in E1 would look for rows in Column A with a month value of 1 and a year value of 2012 and return the sum of Column B values for those rows. In this example, it would be rows 1 and 2.
Would I use SUMIF here? Maybe using some form of AND(MONTH(A)=MONTH(D), YEAR(A)=YEAR(D))?
Thanks.