Kasp,
Select your table, use Data / Pivto Table.... and click OK.
Then drag "Group" to the rows area, then "col1" to the data area, set it to "SUM", and the drag
"col2" to the data area, again set to SUM.
Then drag the data button to the top of the table to re-orient the fields. (Make columns of col1
and col2 instead of rows.)
Then use "Pivot Table" (on the PT commandbar), Formulas... Calculated Field. Give it a name, and
in the formula area, use
= col1/col2
(use the insert button to get the references into the formula)
Then click Add. And in the pivot table, select that field, use "Field Settings" select the "Number"
button, and format for percentage, with as many decimals as you need.
And you're done...
HTH,
Bernie
MS Excel MVP
> Hi,
>
[quoted text clipped - 29 lines]
> Thanks in advance,
> Kasp