title: SUM with Two different Criteria in Column and Row
body: <p>In cell B2, I would like to SUM all of the values that that both are AAA and Original Cost from the source table below. Furthermore, making the formula dynamic for the range A8:E8 will be crucial, as the data order might be changing. </p>
  
  <p>Any suggestions on how to proceed? Preferably with an Index and Match formula</p>
  
  <p>Thank you!</p>
  
  <p><a href="https://i.stack.imgur.com/ZQufj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZQufj.png" alt="Sample Data"></a></p>