year/month

R

red

Hi,
I am trying to search an array and sum the values in a column where the year
and month = my criteria. I can do it for just the mounth using
:-=SUMPRODUCT(--(MONTH($I$4:$I$100)=COLUMNS(A1:L1)),$H$4:$H$100), but i now
have data for more than one year so i need to add a year search as well.
Can anybody help?
 
B

Bernie Deitrick

=SUMPRODUCT(--(MONTH($I$4:$I$100)=COLUMNS(A1:L1)),--(YEAR($I$4:$I$100)=2009),$H$4:$H$100)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top