What does the double minus sign before a forkmula do? (e.g. "--SUM")

  • Thread starter Thread starter shadestreet
  • Start date Start date
S

shadestreet

Just curious, sometime when I ask for help with a formula I am told t
use the "--", and I never really knew what it did.

Thank
 
Hi Shadestreet!

It is used in many counting and summing formulas where a condition
returns TRUE or FALSE and we want to coerce the condition to either 1
or 0. The act of multiplying by -- is the same as multiplying twice
by -1.

Here's a simple example:

=AND(C3=31,C10=28)
Returns TRUE or FALSE

But:

=--AND(C3=31,C10=28)
Returns 1 or 0.
 

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