Richard,
The MOD function returns the Modulus or remainder of one number
divided by another. So MOD(COLUMN(),2) returns the remainder of
COLUMN() divided by 2. The remainder is either a 1 or a 0. Odd
numbers have a remainder of 1 when divided by 2, and even numbers
have a remainder of 1 when divided by 2.
Thus, MOD(COLUMN(A1
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
1),2) will return an array (list) of 0's and
1's depending on whether each column number in A1
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
1 is even or
odd. Testing these results for = 1 returns an array of TRUE or
FALSE values, TRUE being the result when the column number is odd
and FALSE being the result when the column number if even. The
formula then multiplies this array of TRUE and FALSE values by
the values in A1
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
1. Since Excel treats TRUE as 1 and FALSE as
0, and multiplying by zero equals 0, the formula creates an array
a values, each one being either 0 (if there was a FALSE in the
corresponding array element) or the value of each element in
A1
![Stick Out Tongue :P :P](/styles/default/custom/smilies/tongue.gif)
1 (multiplied by 1, which is the equivalent of TRUE).
Finally, the SUMPRODUCT adds all this up to return the sum of
values in the odd numbered columns.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com