title: Product if date = specific year
body: <p><a href="https://i.stack.imgur.com/FvBFV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FvBFV.png" alt="enter image description here"></a></p>
  
  <p>I am trying to compute the column M to do a product of column D if the date(column A) falls within the year as specific on column L.</p>
  
  <p>So far I have tried the above formula <code>=PRODUCT(IF(YEAR(A4:A345)=L5,D4:D345,1))</code> but it failed to work. Any suggestion?</p>