Summarise cells - row by row

leeksleeks

Board Regular
Joined
Oct 31, 2013
Messages
96
Hi,

I need to be able to summarise the table below to show who was doing what hour by hour so that this can be used in a database. Essentially I need to extract an hour by hour view from the large table below to just return this:

08:00name.1SALES 2
08:00name.4TRAINING
08:00name.6SALES 1
08:30name.1SALES 2

<tbody>
</tbody>

This is the table that I want the data to be summarised from. Is there some VBA code that can extract the time, name and task from each of the lines where there is data on it? So if there is a task assigned, return the time of that task and the name at the top of the column.

name.1name.2name.3name.4name.5name.6name.7name.8
08:00SALES 2 TRAINING SALES 1
08:30SALES 2 TRAINING SALES 1
09:00SALES 2 TRAINING SALES 1 TRAINING
09:30SALES 2 TRAINING SALES 1 TRAINING
10:00SALES 2 SALES 1TRAINING SALES 4SALES 5SALES 6
10:30SALES 2 SALES 1TRAINING SALES 4SALES 5SALES 6
11:00SALES 2 SALES 1TRAINING SALES 4SALES 5TRAINING
11:30SALES 2 SALES 1TRAINING SALES 4SALES 5TRAINING
12:00SALES 2 SALES 1TRAINING SALES 4SALES 4TRAINING
12:30SALES 2 SALES 1TRAINING OOFSALES 4TRAINING
13:00SALES 2SALES 2SALES 1TRAININGSALES 1OOFSALES 4TRAINING
13:30SALES 4SALES 2SALES 1TRAININGSALES 1OOFSALES 4TRAINING
14:00SALES 4MEETINGSALES 1TRAININGMEETINGSALES 2SALES 2TRAINING
14:30SALES 4MEETINGSALES 1TRAININGMEETINGSALES 2SALES 2TRAINING
15:00SALES 4MEETINGSALES 1TRAININGMEETINGSALES 2SALES 2TRAINING
15:30SALES 4MEETINGSALES 1TRAININGMEETINGSALES 2SALES 2TRAINING
16:00SALES 4MEETINGSALES 1TRAININGMEETINGSALES 2SALES 2TRAINING
16:30 SALES 4SALES 1 TRAINING SALES 2TRAINING
17:00 SALES 4SALES 1 TRAINING SALES 2TRAINING
17:30 SALES 4SALES 1 TRAINING SALES 2
18:00 SALES 4SALES 1 TRAINING SALES 2
18:30 SALES 2 SALES 1
19:00 SALES 2 SALES 1
19:30 SALES 2 SALES 1
20:00 SALES 2 SALES 1
20:30 SALES 2 SALES 1
21:00 SALES 2 SALES 1
21:30

<colgroup><col span="3"><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 
I have tried both yours and Peter_SSs and they both work perfectly. Thank you for your work here. It has saved me hours of banging my head against my desk!
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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