Hello. I have data across three years. I have three cells. Years and start month/end month. How can I write a formula that will sum based on this criteria? Spreadsheet attached. Thanks!!
Hello. I have data across three years. I have three cells. Years and start month/end month. How can I write a formula that will sum based on this criteria? Spreadsheet attached. Thanks!!
Hi,
=SUMPRODUCT(A3:AJ3,(YEAR(A2:AJ2)=AL1)*(MONTH(A2:AJ2)>=MONTH(AL2&1))*(MONTH(A2:AJ2)<=MONTH(AM2&1)))
if you could write 1 instead of January and 4 insead of April:
=SUMPRODUCT(A3:AJ3,(YEAR(A2:AJ2)=AL1)*(MONTH(A2:AJ2)>=AL2)*(MONTH(A2:AJ2)<=AM2))
Hope it helps
-----------------------------------------------------
At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.
Please, mark your thread [SOLVED] if you received your answer.
@ canapone. That worked!! Thanks![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks