Excel: Calculating Using Noncontiguous AreasLast reviewed: November 2, 1994Article ID: Q41622 |
The information in this article applies to:
SUMMARYBelow is an example of calculating a sum of the intersection of a column and name defined to be a noncontiguous area on a sheet. In this example, the name COST will be defined to be A1:C1, A3:C3, A5:C5, as shown below. This is an area that is noncontiguous, that is there are rows within the area that are not included in the area. In this example, those rows would be row 2 and row 4. The example is as follows:
A1: 1 B1: 4 C1: 7 <<--| A2: 98 B2: 99 C2: 67 | A3: 2 B3: 5 C3: 8 <<--|<--COST A4: 35 B4: 76 C4: 85 | A5: 3 B5: 6 C5: 9 <<--| MORE INFORMATIONTo sum up the Total of Cost, the function involved would be as follows:
=SUM(COST)This sum would return the value 45. To find the Sum of Cost that falls in column A, the function would be as follows:
=SUM(COST A:A)Note that there is a blank space between COST and A:A. This space is the intersection character. It creates a new reference by finding what is common between the two references used before and after it. In this example, cells A1, A3, and A5 are common to both column A and the defined name COST. This sum would then return the value 6. To find the Sum of Cost that falls in columns A and C, the function would be as follows:
=SUM(COST A:A, COST C:C)This sum would return the value 30.
REFERENCES"Microsoft Excel User's Guide," version 3.0, page 231 "Microsoft Excel Reference," version 2.x, page 570
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |