SUMIF(Table 1::$’Bucket’,$’Bucket’,Table 1::$Amount)

assuming the table with data is like:

Table 1:

| Bucket | Amount |

| A | 3 |

| Z | 5 |

| A | 4 |

| D | 1 |

| D | 6 |

…

that formula is to be entered on the first row of the summary table, each argument marked with “Preserve Column” and then drag the selection box with yellow dot all the way down to cover all the categories.

Summary table:

| Bucket | Amount |

| A | SUMIF(Table 1::$’Bucket’,$’Bucket’,Table 1::$Amount)

| B | |

| C | V

…

| Z | __

SUMIF(, , )

Say I have a dataset as follows (line numbers are implied)

|| A || B ||

| 1 | oranges |

| 4 | apples |

| 8 | oranges |

| 3 | pears |

| 2 | apples |

To total each fruit time, a table with the following values, staring on line 10

|| A || B ||

| oranges | =SUMIF($B$1:$B$5, A10, $A$1:$A$5) |

| apples | =SUMIF($B$1:$B$5, A11, $A$1:$A$5) |

| pears | =SUMIF($B$1:$B$5, A12, $A$1:$A$5) |

Will result in (from line 10 again) showing

|| A || B ||

| oranges | 9 |

| apples | 6 |

| pears | 3 |

(Hope the wiki table markup works…)

]]>I modified the “Total per Category” equation in Numbers v4.3 to:

IF(COUNTIF(A$1:A1,A2)=0,SUMIF(A,A2,Amount),”-“)

so that that column “C” either contains the sum or a “-“. Next, hide column “B” . Then, “Filter” the results to display just the numbers, which makes the pie chart look nice.

=IF(COUNTIF(A$1:A1,A2)=0,SUMIF(A,A2,C),””)

]]>