tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,834
- Office Version
- 365
- 2019
- Platform
- Windows
This is my data:
The formula:
returns a value of 30.
I assume this is because it searches for all those values in column A where the value is < 3 (ie the 1 and the 2) and sums their correspondng values, ie 10 and 20.
However, if my formula was:
I get a value of 152.
what is happening here?
Thanks
Code:
1 10
2 20
3 30
4 40
5 50
The formula:
Code:
=SUMPRODUCT((A1:A5<3)*B1:B5)
returns a value of 30.
I assume this is because it searches for all those values in column A where the value is < 3 (ie the 1 and the 2) and sums their correspondng values, ie 10 and 20.
However, if my formula was:
Code:
=SUMPRODUCT((A1:A5<3)+B1:B5)
I get a value of 152.
what is happening here?
Thanks