sumproduct function calculating wrong?

donalde

Board Regular
Joined
Feb 27, 2002
Messages
80
I create new sheet, format all cell to be number type. Then I paste data from another sheet, using paste special -> values
A B
15973,26 1,00
318,10 18,00
98,94 8,00
251,09 1,00
276,68 4,00
column A has value, column B has multiplier for value. When I count A1*B1+A4*B4+A5*A6 I get 17331,07 which is correct. But when I use =SUMPRODUCT(A1:B5) I get value 16950,7 which is impossible value. Correct value would be 23848,30. Does somebody have clue where this goes wrong? Same error happens when using general type cells. Desimal
separator is , (european style)
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Based on the data you posted, the sums you are getting are correct.

Your answer of 16950.07 is the sum of:
A1+B1+A2+B2+A3+B3+A4+B4+A5+B5

Nobby
 
Upvote 0
On 2002-03-06 05:18, donalde wrote:
I create new sheet, format all cell to be number type. Then I paste data from another sheet, using paste special -> values
A B
15973,26 1,00
318,10 18,00
98,94 8,00
251,09 1,00
276,68 4,00
column A has value, column B has multiplier for value. When I count A1*B1+A4*B4+A5*A6 I get 17331,07 which is correct. But when I use =SUMPRODUCT(A1:B5) I get value 16950,7 which is impossible value. Correct value would be 23848,30. Does somebody have clue where this goes wrong? Same error happens when using general type cells. Desimal
separator is , (european style)

It's:

=SUMPRODUCT((A1:A5)*(B1:B5))
 
Upvote 0
Many thank to all who replied, I have made stupid mistake on syntax. Mark W, thanks for giving correct syntax.
 
Upvote 0
On 2002-03-06 22:53, donalde wrote:
Many thank to all who replied, I have made stupid mistake on syntax. Mark W, thanks for giving correct syntax.

=SUMPRODUCT((A1:A5)*(B1:B5))

is also correct syntaxwise.
 
Upvote 0

Forum statistics

Threads
1,214,528
Messages
6,120,065
Members
448,942
Latest member
sharmarick

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