Sumproduct

H

Hunter

The following formula was given to me earlier on this forum and it works
great...thanks.

=SUMPRODUCT(--($A$1:$A4<A4),--($A$1:$A4>=A4-365),$B$1:$B4)

Now I need to understand how it works. What is the signfigance of the --?

The formula is summing data in column B for dates found in colun A for the
previous 365 days from the date found in cell A4. I thought that sumproduct
only multiplied the sums of arrays. How does this work?

Thanks in advance.
 
F

Franz Verga

Hunter said:
The following formula was given to me earlier on this forum and it
works great...thanks.

=SUMPRODUCT(--($A$1:$A4<A4),--($A$1:$A4>=A4-365),$B$1:$B4)

Now I need to understand how it works. What is the signfigance of
the --?

The formula is summing data in column B for dates found in colun A
for the previous 365 days from the date found in cell A4. I thought
that sumproduct only multiplied the sums of arrays. How does this
work?

Thanks in advance.

Hi Hunter,

I think this link from Bob Phillips' site will be useful for you:

http://www.xldynamic.com/source/xld.SUMPRODUCT.html


--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

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