Вы находитесь на странице: 1из 8

Credits:

Thanks to BBR Member PapaDOS for revealing these nice functions. Especially for the "every other" functions.

SUMPRODUCT()
Multiplies corresponding components in the given arrays, and returns the sum of those products.
Syntax
SUMPRODUCT(array1,array2,array3, ...)
Array1, array2, array3, ... are 2 to 30 arrays whose components you want to multiply and then add.
Remarks
The array arguments must have the same dimensions. If they do not, SUMPRODUCT returns the #VALUE! e
SUMPRODUCT treats array entries that are not numeric as if they were zeros.
MOD()
Returns the remainder after number is divided by divisor. The result has the same sign as divisor.
Syntax
MOD(number,divisor)
Number is the number for which you want to find the remainder.
Divisor is the number by which you want to divide number
ROW()
Returns the row number of a reference.
Syntax
ROW(reference)
Reference is the cell or range of cells for which you want the row number.
If reference is omitted, it is assumed to be the reference of the cell in which the ROW function appears.
Reference cannot refer to multiple areas.

COLUMN()
Returns the column number of the given reference.
Syntax
COLUMN(reference)
Reference is the cell or range of cells for which you want the column number.
If reference is omitted, it is assumed to be the reference of the cell in which the COLUMN function appears.
Reference cannot refer to multiple areas
How It Works:
The secret of this is to 'trick' the SUMPRODUCT() function into doing simple addition instead of
actual multiplication. By using the MOD() function we restrict the multiplication to values of
either 0 or 1.
By testing the results of a MOD() operation for a result of zero, we turn it into a boolean (logical)
function that will return 0 if the result was not zero, and 1 (true) if the result was zero.
The result of a MOD() operation is only zero when the number is an even multiple of the divisor.
For the ROW() function the return value is fairly obvious: it's the row number of a cell.
For the COLUMN() function, returns are from 1 to 256, where column A=1, B=2, etc.
The "Every Other Row/Column" functions are slightly different - you have to determine whether the
rows/columns you need to add together are even or odd numbered rows/columns. Hence the variations of the formulas.
TRICK
Because SUMPRODUCTS() ignores non-numeric entries in the array1 range, you can set the formulas up
to refer to all rows or columns in a range and thus never have to worry about changing it/them as you add

data to the values to be added together.


For adding rows the formulas can be changed to something like A1:A65536 (assuming data in column A)
For adding columns the formulas can be changed to something like A1:IV1 (assuming data is in row 1)

every other" functions.

ply and then add.

returns the #VALUE! error value.

W function appears.

UMN function appears.

ons of the formulas.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5

1
2
3
4
5
0
2
3
4
5
0
2
3
4
5
0
2
3
4
5
0
2
3
4
5
0
2
3
4
5
Total for Every

5 th entry.

30 < working with values in column B

Check Values:
42
28
21
30
85

Every 2nd row


Every 3rd Row
Every 4th row
Every 5th row
Every (all) rows

42 Even Rows
43 Odd Rows

42

43

Val 1

0.1 Val 2
1 Val 1

Val 1

0.1 Val 2

Val 2
0.75

0.2 Val 3

Val 3
0.6

0.2 Val 3

Val 4
0.7

0.3 Val 4

Val 5
0.8

Add Even Columns


5.5 working on row 1 entries
Add Odd Columns
5.5 working on row 3 entries
Enter nth value >
4
1.5 Add nth columns (works on data in row 6)
Check values
3.5
3.75
2
1.5
1.8
7.25

Even (2nd columns)


Odd Columns
Every 3rd Column
Every 4th column
Every 5th column
Every 1nth (all) rows

0.3 Val 4

Val 1
0.9

0.4 Val 5

Val 2
0.5

0.4

Val 3
0.6

Val 4
0.7

0.8

0.5 Val 6
Val 5

0.6 Val 7
0.5 Val 6

Val 5
0.9

0.7 Val 8
0.6 Val 7

0.8 Val 9
0.7 Val 8

0.9 Val 10
0.8 Val 9

0.9

1
Val 10