Purpose of -- in SUMPRODUCT?

  • Thread starter Thread starter The Shaffer s
  • Start date Start date
T

The Shaffer s

In several threads, I see the use of "--" before the arguments to SUMPRODUCT
function and was wondering what purpose a double-negative serves.

Ken shaffer
 
Where you see the --, it's in front of a formula that returns TRUE or FALSE.
SUMPRODUCT ignores TRUE/FALSE values. The -- converts the TRUE to 1 and FALSE
to 0.
 
It forces a boolean (True/False) result to be analyzed as a numeric (1/0)
value.
 

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

Back
Top