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 you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
something like this?

with PowerQuery and PivotTable

datestop reason1Stop time 1stop reason2Stop time 2stop reason3Stop time 3stop reason4Stop time 4stop reason5Stop time 5
02/06/2019​
Thing24
55​
Thing19
31​
29/05/2019​
Thing16
52​
Thing21
1​
Thing12
23​
Thing19
41​
24/05/2019​
Thing1
16​
Thing18
56​
Thing12
53​
Thing5
4​
02/06/2019​
Thing18
24​
Thing18
3​
24/05/2019​
Thing1
29​
03/06/2019​
Thing24
32​
Thing21
16​
Thing1
8​
Thing16
25​
Thing2
5​
30/05/2019​
Thing24
5​
Thing22
1​
Thing15
42​
stop time(All)
Thing(All)
datestop reasonSum of stop time value
24/05/2019
stop reason1
129​
stop reason2
129​
stop reason3
158​
stop reason5
129​
29/05/2019
stop reason1
117​
stop reason3
117​
stop reason4
117​
stop reason5
117​
30/05/2019
stop reason1
48​
stop reason2
48​
stop reason4
48​
02/06/2019
stop reason1
86​
stop reason3
27​
stop reason4
86​
stop reason5
27​
03/06/2019
stop reason1
86​
stop reason2
86​
stop reason3
86​
stop reason4
86​
stop reason5
86​
 
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>
Date
Stop reason
Time
2019-02-06
Thing2455
2019-02-06Thing1931
2019-02-06Thing1824
2019-03-06Thing2432
2019-03-06Thing1625
2019-03-06Thing2116
2019-05-24Thing1856
2019-05-24Thing1253
2019-05-24Thing145
2019-05-29Thing1652
2019-05-29Thing1941
2019-05-29Thing1223
2019-05-30Thing1542
2019-05-30Thing245
2019-05-30Thing221

<tbody>
</tbody>


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,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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