adding next years value

T

tleehh

i would like to add all the values in month of january of 2010 in colume D.
i am using formula as follows but does not add.

=sumproduct(d10:d100,--(month(b10:b100)=month(now())+2,--(year(b10:b100)=
year(now())+1))

colume B contains a dates and colume D cotains value.

Thank you.
 
D

Dave Peterson

Are you really asking to sum the values for dates two months from now?

So on Jan 13, I'd want March -- of the same year?

if yes:

=sumproduct(d10:d100,
--(text(b1:b10,"yyyymm")
=text(date(year(today()),month(today())+2,1),"yyyymm")))
 
T

tleehh

Dave Peterson said:
Are you really asking to sum the values for dates two months from now?

So on Jan 13, I'd want March -- of the same year?

if yes:

=sumproduct(d10:d100,
--(text(b1:b10,"yyyymm")
=text(date(year(today()),month(today())+2,1),"yyyymm")))




--

Dave Peterson
.
Thank you!
 

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