This article was previously published under Q136738
This article has been archived. It is offered "as is" and will no longer be updated.
When you use any of the worksheet functions in Microsoft Excel, and youhave a range argument that includes either hidden rows or columns, thecells in these hidden areas are still used by the function. For example,if you have the following in a worksheet
A1: 1 A2: 1 A3: 1 A4: =SUM(A1:A3)
the SUM function in cell A4 returns a value of 3. If you then hide Row 2,the SUM function still returns a value of 3.
If you would like to sum only the Odd or the Even rows in a range, insteadof trying to hide rows, which does not work in this case, you can use thefollowing formulas.
If you enter this as an array formula in cell A4 in the above example, itreturns a value of 2.
NOTE: To enter a formula as an array formula in Microsoft Excel forWindows, press CTRL+SHIFT+ENTER. In Microsoft Excel for the Macintosh,press COMMAND+RETURN.
If you enter this as an array formula in cell A4 in the above example, itreturns a value of 1.
NOTE: If you still want to hide rows for the above example, the twofunctions given will still work as outlined.
5.00c 5.00a 7.00a 97 XL97 XL7 XL5 XL4 XL3 every other alternate XL