excel - Can I use a function as a criteria in SUMIF? -
i have 2 columns: 1 contains numbers, other contains dates. want add number first column date is, example, in march.
i know can add new column contain =month()
, use criteria range in sumif
.
is there way using 2 columns?
this can not done without helper column months listed. instead try sumproduct() or sum(), can try ctrl+shift+enter:
=sum((month(a1:a15)=3)*b1:b15)
Comments
Post a Comment