title: Excel formula: Sum if two columns match
body: <p>I need a formula that only sums numbers in a cell from a column if it matches two cells in the same row.</p>
  
  <p>In J3 i'm trying to get the sum of all the returns that are from January 2009.
  In J4 'm trying to get the sum of all the returns that are from february 2009.
  And so on.</p>
  
  <p><img src="https://i.stack.imgur.com/6nC0S.png" alt="The datasheet"></p>
  
  <p>I tried different sumifs but it didn't return the value.</p>