Summarize table

CsJHUN

Active Member
Joined
Jan 13, 2015
Messages
360
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. Mobile
Hi Gals and Guys,

let say i have this:
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style><style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC;
}
.tableizer-table th {
background-color: #104E8B;
color: #FFF;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th>date</th><th>stop reason1</th><th>Stop time 1</th><th>stop reason2</th><th>Stop time 2</th><th>stop reason3</th><th>Stop time 3</th><th>stop reason4</th><th>Stop time 4</th><th>stop reason5</th><th>Stop time 5</th></tr></thead><tbody>
<tr><td>6/2/2019</td><td>Thing24</td><td>55</td><td> </td><td> </td><td> </td><td> </td><td>Thing19</td><td>31</td><td> </td><td> </td></tr>
<tr><td>5/29/2019</td><td>Thing16</td><td>52</td><td> </td><td> </td><td>Thing21</td><td>1</td><td>Thing12</td><td>23</td><td>Thing19</td><td>41</td></tr>
<tr><td>5/24/2019</td><td>Thing1</td><td>16</td><td>Thing18</td><td>56</td><td>Thing12</td><td>53</td><td> </td><td> </td><td>Thing5</td><td>4</td></tr>
<tr><td>6/2/2019</td><td> </td><td> </td><td> </td><td> </td><td>Thing18</td><td>24</td><td> </td><td> </td><td>Thing18</td><td>3</td></tr>
<tr><td>5/24/2019</td><td> </td><td> </td><td> </td><td> </td><td>Thing1</td><td>29</td><td> </td><td> </td><td> </td><td> </td></tr>
<tr><td>6/3/2019</td><td>Thing24</td><td>32</td><td>Thing21</td><td>16</td><td>Thing1</td><td>8</td><td>Thing16</td><td>25</td><td>Thing2</td><td>5</td></tr>
<tr><td>5/30/2019</td><td>Thing24</td><td>5</td><td>Thing22</td><td>1</td><td> </td><td> </td><td>Thing15</td><td>42</td><td> </td><td></td></tr>
</tbody></table>
i want to make the top 3 stop reason for each day with summarized time.

Any advice?

cheers
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
something like this?

with PowerQuery and PivotTable

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]date[/td][td=bgcolor:#5B9BD5]stop reason1[/td][td=bgcolor:#5B9BD5]Stop time 1[/td][td=bgcolor:#5B9BD5]stop reason2[/td][td=bgcolor:#5B9BD5]Stop time 2[/td][td=bgcolor:#5B9BD5]stop reason3[/td][td=bgcolor:#5B9BD5]Stop time 3[/td][td=bgcolor:#5B9BD5]stop reason4[/td][td=bgcolor:#5B9BD5]Stop time 4[/td][td=bgcolor:#5B9BD5]stop reason5[/td][td=bgcolor:#5B9BD5]Stop time 5[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
02/06/2019​
[/td][td=bgcolor:#DDEBF7]Thing24[/td][td=bgcolor:#DDEBF7]
55​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]Thing19[/td][td=bgcolor:#DDEBF7]
31​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
29/05/2019​
[/td][td]Thing16[/td][td]
52​
[/td][td][/td][td][/td][td]Thing21[/td][td]
1​
[/td][td]Thing12[/td][td]
23​
[/td][td]Thing19[/td][td]
41​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
24/05/2019​
[/td][td=bgcolor:#DDEBF7]Thing1[/td][td=bgcolor:#DDEBF7]
16​
[/td][td=bgcolor:#DDEBF7]Thing18[/td][td=bgcolor:#DDEBF7]
56​
[/td][td=bgcolor:#DDEBF7]Thing12[/td][td=bgcolor:#DDEBF7]
53​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]Thing5[/td][td=bgcolor:#DDEBF7]
4​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
02/06/2019​
[/td][td][/td][td][/td][td][/td][td][/td][td]Thing18[/td][td]
24​
[/td][td][/td][td][/td][td]Thing18[/td][td]
3​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
24/05/2019​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]Thing1[/td][td=bgcolor:#DDEBF7]
29​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
03/06/2019​
[/td][td]Thing24[/td][td]
32​
[/td][td]Thing21[/td][td]
16​
[/td][td]Thing1[/td][td]
8​
[/td][td]Thing16[/td][td]
25​
[/td][td]Thing2[/td][td]
5​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
30/05/2019​
[/td][td=bgcolor:#DDEBF7]Thing24[/td][td=bgcolor:#DDEBF7]
5​
[/td][td=bgcolor:#DDEBF7]Thing22[/td][td=bgcolor:#DDEBF7]
1​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7]Thing15[/td][td=bgcolor:#DDEBF7]
42​
[/td][td=bgcolor:#DDEBF7][/td][td=bgcolor:#DDEBF7][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]stop time[/td][td=bgcolor:#DDEBF7](All)[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]Thing[/td][td=bgcolor:#DDEBF7](All)[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]date[/td][td=bgcolor:#DDEBF7]stop reason[/td][td=bgcolor:#DDEBF7]Sum of stop time value[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
24/05/2019
[/td][td]stop reason1[/td][td]
129​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason2[/td][td]
129​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason3[/td][td]
158​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason5[/td][td]
129​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
29/05/2019
[/td][td]stop reason1[/td][td]
117​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason3[/td][td]
117​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason4[/td][td]
117​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason5[/td][td]
117​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
30/05/2019
[/td][td]stop reason1[/td][td]
48​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason2[/td][td]
48​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason4[/td][td]
48​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
02/06/2019
[/td][td]stop reason1[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason3[/td][td]
27​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason4[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason5[/td][td]
27​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
03/06/2019
[/td][td]stop reason1[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason2[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason3[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason4[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td][/td][td]stop reason5[/td][td]
86​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0
Thx Sandy, really promising.
Looking for something more like this:
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date
[/TD]
[TD]Stop reason
[/TD]
[TD]Time
[/TD]
[/TR]
[TR]
[TD]2019-02-06
[/TD]
[TD]Thing24[/TD]
[TD]55
[/TD]
[/TR]
[TR]
[TD]2019-02-06[/TD]
[TD]Thing19[/TD]
[TD]31[/TD]
[/TR]
[TR]
[TD]2019-02-06[/TD]
[TD]Thing18[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]2019-03-06[/TD]
[TD]Thing24[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]2019-03-06[/TD]
[TD]Thing16[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]2019-03-06[/TD]
[TD]Thing21[/TD]
[TD]16[/TD]
[/TR]
[TR]
[TD]2019-05-24[/TD]
[TD]Thing18[/TD]
[TD]56[/TD]
[/TR]
[TR]
[TD]2019-05-24[/TD]
[TD]Thing12[/TD]
[TD]53[/TD]
[/TR]
[TR]
[TD]2019-05-24[/TD]
[TD]Thing1[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]2019-05-29[/TD]
[TD]Thing16[/TD]
[TD]52[/TD]
[/TR]
[TR]
[TD]2019-05-29[/TD]
[TD]Thing19[/TD]
[TD]41[/TD]
[/TR]
[TR]
[TD]2019-05-29[/TD]
[TD]Thing12[/TD]
[TD]23[/TD]
[/TR]
[TR]
[TD]2019-05-30[/TD]
[TD]Thing15[/TD]
[TD]42[/TD]
[/TR]
[TR]
[TD]2019-05-30[/TD]
[TD]Thing24[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]2019-05-30[/TD]
[TD]Thing22[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]


We only have powerpivot, if thats the same as power querry i still concenr it has to be enabled at the "end user" or its saved and carried with the file?
How you set up pivot to look like yours. Because if i move the reason fields to the row/column lablels its cascade them below each other.
 
Last edited:
Upvote 0
on the ribbon:
screenshot-63.png
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top