CyrusTheVirus
Well-known Member
- Joined
- Jan 28, 2015
- Messages
- 749
- Office Version
- 365
- Platform
- Windows
Hi everyone,
I guess I don't seem to understand the SUMPRODUCT function enough in terms of separation of arrays by a 'comma' or by a 'multiplication' sign. Here's my issue:
I do not understand why when using SUMPRODUCT and a '*' (multiplication sign) to join the array calculations the formula works, but using the ',' (comma) it doesn't work. I thought that the calculation would be the same using either the '*' or the ',' because both are indicating a separation of the arrays.
Interestingly enough: When adding numbers instead of names, it seems to work using either the '*' or the ',' to separate... not sure why it works for numbers and not names?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reference (A1)[/TD]
[TD]Dan (B1)[/TD]
[/TR]
[TR]
[TD]Reference (A2)[/TD]
[TD]Jones (B2)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name (A5)[/TD]
[TD]Last Name (B5)[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Smith[/TD]
[TD]70 = SUMPRODUCT((A6:A9=B1)*(B6:B9=B2))[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Jones[/TD]
[TD]0 = SUMPRODUCT(A6:A9=B1,B6:B9=B2)[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Smith[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Jones[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if clarification is needed. Thanks.
I guess I don't seem to understand the SUMPRODUCT function enough in terms of separation of arrays by a 'comma' or by a 'multiplication' sign. Here's my issue:
I do not understand why when using SUMPRODUCT and a '*' (multiplication sign) to join the array calculations the formula works, but using the ',' (comma) it doesn't work. I thought that the calculation would be the same using either the '*' or the ',' because both are indicating a separation of the arrays.
Interestingly enough: When adding numbers instead of names, it seems to work using either the '*' or the ',' to separate... not sure why it works for numbers and not names?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Reference (A1)[/TD]
[TD]Dan (B1)[/TD]
[/TR]
[TR]
[TD]Reference (A2)[/TD]
[TD]Jones (B2)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name (A5)[/TD]
[TD]Last Name (B5)[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Smith[/TD]
[TD]70 = SUMPRODUCT((A6:A9=B1)*(B6:B9=B2))[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Jones[/TD]
[TD]0 = SUMPRODUCT(A6:A9=B1,B6:B9=B2)[/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Smith[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Dan[/TD]
[TD]Jones[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please let me know if clarification is needed. Thanks.