Hi everyone,
I'm new to the forum and using Excel only occasionally. Now I have to calculate something more complex and I really need your help.
I have a sheet with about 170 rows and 130 columns (from which 20 "categories"). I need for each category to find the identical values and calculate for each one the sum and count of the "data" from each column.
I was starting to sort A-Z each category and calculate for each identical value the sum and count of the respective rows. But there are a lot of hours of work ... So any better solution will be greatly appreciated.
example<table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>cat 1</th><th>cat 2</th><th> </th><th>data 1</th><th>data 2</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">a</td><td style=";">x</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.50</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">b</td><td style=";">y</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">5.00</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">a</td><td style=";">z</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">c</td><td style=";">y</td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">10.00</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">b</td><td style=";">z</td><td style="text-align: right;;"></td><td style="text-align: right;;">4.25</td><td style="text-align: right;;"></td></tr></tbody></table><br /><br />
expected result<table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>cat 1</th><th>cat 2</th><th> </th><th>data 1</th><th>data 2</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">a sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">3.50</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">a count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">2.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">b sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">4.25</td><td style="text-align: right;;">5.00</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">b count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">c sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">10.00</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">c count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;"></td><td style=";">x sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.50</td><td style="text-align: right;;">0.00</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;"></td><td style=";">x count</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">0.00</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;"></td><td style=";">y sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">15.00</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;"></td><td style=";">y count</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">2.00</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;"></td><td style=";">z sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">5.25</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;"></td><td style=";">z count</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.00</td><td style="text-align: right;;">1.00</td></tr></tbody></table><br /><br />
I'm new to the forum and using Excel only occasionally. Now I have to calculate something more complex and I really need your help.
I have a sheet with about 170 rows and 130 columns (from which 20 "categories"). I need for each category to find the identical values and calculate for each one the sum and count of the "data" from each column.
I was starting to sort A-Z each category and calculate for each identical value the sum and count of the respective rows. But there are a lot of hours of work ... So any better solution will be greatly appreciated.
example<table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>cat 1</th><th>cat 2</th><th> </th><th>data 1</th><th>data 2</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">a</td><td style=";">x</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.50</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">b</td><td style=";">y</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">5.00</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">a</td><td style=";">z</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">c</td><td style=";">y</td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">10.00</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">b</td><td style=";">z</td><td style="text-align: right;;"></td><td style="text-align: right;;">4.25</td><td style="text-align: right;;"></td></tr></tbody></table><br /><br />
expected result<table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>cat 1</th><th>cat 2</th><th> </th><th>data 1</th><th>data 2</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">a sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">3.50</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">a count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">2.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">b sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">4.25</td><td style="text-align: right;;">5.00</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">b count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">c sum</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">10.00</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">c count</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">1.00</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;"></td><td style=";">x sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.50</td><td style="text-align: right;;">0.00</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;"></td><td style=";">x count</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">0.00</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;"></td><td style=";">y sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">3.00</td><td style="text-align: right;;">15.00</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;"></td><td style=";">y count</td><td style="text-align: right;;"></td><td style="text-align: right;;">1.00</td><td style="text-align: right;;">2.00</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;"></td><td style=";">z sum</td><td style="text-align: right;;"></td><td style="text-align: right;;">5.25</td><td style="text-align: right;;">7.00</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;"></td><td style=";">z count</td><td style="text-align: right;;"></td><td style="text-align: right;;">2.00</td><td style="text-align: right;;">1.00</td></tr></tbody></table><br /><br />