Question about difference Between + and =

MyExcel

Well-known Member
Joined
Sep 25, 2008
Messages
508
hi
why somepeople use
+sum(a1:a10)
and other use
=sum(a1:a10)
is there any secert in it
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I believe that + is an alternative to = for compatibility with other spreadsheet programs.
 
Upvote 0
does this not go back to older versions and making excel compatible with other stuff? lotus?
 
Upvote 0
thanx Vog
i asked this Question
becuse we use minus minus before some arguments in formula
=sumproduct(--(a1:a10)*--(b1:a10))
 
Upvote 0
In Excel, the unary plus operator has no effect on the operand stack.

Otherwise you would be correct, we would be able to use:

Code:
=sumproduct(+(a1:a10=X),+(b1:b10=Y))

instead of:
Code:
=sumproduct(--(a1:a10=X),--(b1:b10=Y))
 
Upvote 0
That formula should be more like

=SUMPRODUCT(--(A1:A10=1),--(A1:B10=2))

The -- is the double unary operator and is used to coerce arrays of True/False into arrays of 1/0 that SUMPRODUCT can process.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,853
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top