=SUMPRODUCT

A

ArthurN

Hi,
I saw this formula:
=SUMPRODUCT(--(A2:A65536<>""),--(B2:B65536=""))
And I have no idea what "--" means, I tried searching the manual and the
internet but found nothing.
ArthurN
 
C

Carim

To put it simply, Sumproduct() is a function which ignores alphabetic
cells,
the operator -- ( called Unary Minus ) transforms alpahabetic cells
into numbers : 0 and 1, thus allowing combination with all other
numeric cells ...

Hope this clarifies
Carim
 
T

Teodomiro

Carim said:
To put it simply, Sumproduct() is a function which ignores alphabeti
cells,
the operator -- ( called Unary Minus ) transforms alpahabetic cell
into numbers : 0 and 1, thus allowing combination with all othe
numeric cells ...

Hope this clarifies
Carim

I had never encountered this problem before. I discovered Sumproduc
here: http://www.excel-vba.com/e-formula-sumproduct.htm

He uses an asterisk in place of the comma, like this
=SUMPRODUCT((A1:B10=C1)*(B1:B10)). This works just fine. I understan
the use of the double negative above, but I don't see why using th
asterisk would alleviate that problem. Can someone explain what'
going on there
 

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