ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   What is "--" in Excel Formula (SUMPRODUCT) (https://www.excelbanter.com/excel-discussion-misc-queries/447657-what-excel-formula-sumproduct.html)

IHN Warrior

What is "--" in Excel Formula (SUMPRODUCT)
 
I am trying to understand a formula and cannot find Excel documetnation on what the "--" (operator ?) means in Excel 2010. Can someone give me a brief explanation and point me to some documentation where I can at least understand what this is called? I used to think I knew excel pretty well!

Here is a sample formula where it is used along with a number of named ranges/arrays:

SUMPRODUCT(--(Planner_Type="I"),--(Planner_Category=Dashboard!$R20),INDIRECT($D$22)) *Filter_Currency_ExchangeRate

Cimjet[_4_]

What is "--" in Excel Formula (SUMPRODUCT)
 
On Thursday, November 15, 2012 3:16:48 PM UTC-5, IHN Warrior wrote:
I am trying to understand a formula and cannot find Excel documetnation on what the "--" (operator ?) means in Excel 2010. Can someone give me a brief explanation and point me to some documentation where I can at least understand what this is called? I used to think I knew excel pretty well!



Here is a sample formula where it is used along with a number of named ranges/arrays:



SUMPRODUCT(--(Planner_Type="I"),--(Planner_Category=Dashboard!$R20),INDIRECT($D$22)) *Filter_Currency_ExchangeRate


Hi
It's called double unary, it changes "True/False" into 1 and 0's that Sumproduct can use fot its calculation

IHN Warrior

What is "--" in Excel Formula (SUMPRODUCT)
 
Excellent. Thanks for the lesson. I understand now!

On Thursday, November 15, 2012 12:57:19 PM UTC-8, Cimjet wrote:
On Thursday, November 15, 2012 3:16:48 PM UTC-5, IHN Warrior wrote:

I am trying to understand a formula and cannot find Excel documetnation on what the "--" (operator ?) means in Excel 2010. Can someone give me a brief explanation and point me to some documentation where I can at least understand what this is called? I used to think I knew excel pretty well!








Here is a sample formula where it is used along with a number of named ranges/arrays:








SUMPRODUCT(--(Planner_Type="I"),--(Planner_Category=Dashboard!$R20),INDIRECT($D$22)) *Filter_Currency_ExchangeRate




Hi

It's called double unary, it changes "True/False" into 1 and 0's that Sumproduct can use fot its calculation




On Thursday, November 15, 2012 12:57:19 PM UTC-8, Cimjet wrote:
On Thursday, November 15, 2012 3:16:48 PM UTC-5, IHN Warrior wrote:

I am trying to understand a formula and cannot find Excel documetnation on what the "--" (operator ?) means in Excel 2010. Can someone give me a brief explanation and point me to some documentation where I can at least understand what this is called? I used to think I knew excel pretty well!








Here is a sample formula where it is used along with a number of named ranges/arrays:








SUMPRODUCT(--(Planner_Type="I"),--(Planner_Category=Dashboard!$R20),INDIRECT($D$22)) *Filter_Currency_ExchangeRate




Hi

It's called double unary, it changes "True/False" into 1 and 0's that Sumproduct can use fot its calculation




All times are GMT +1. The time now is 11:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com