![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Finland
Posts: 72
|
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) |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: United Kingdom
Posts: 68
|
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 |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=SUMPRODUCT((A1:A5)*(B1:B5)) |
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Use...
=SUMPRODUCT(A1:A5,B1:B5) |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Finland
Posts: 72
|
Many thank to all who replied, I have made stupid mistake on syntax. Mark W, thanks for giving correct syntax.
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
is also correct syntaxwise. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|