Consolidating rows

marcidee

Board Regular
Joined
May 23, 2016
Messages
196
Office Version
  1. 2019
I have a sheet that has a blank line after every weekending - each section will have several rows that I need to consolidate by person with totals in each column - so in the example below I would need 1 line for Annette for 3/4/16 with a total for each of the last 4 columns and so on for each name on the 3/4/16 (column B) - then this would be repeated for the next week 10/4/16 and so on for the whole year.

Can you help me with a script for this?


[TABLE="width: 645"]
<tbody>[TR]
[TD]Annette
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]01 Apr 2016
[/TD]
[TD]RGN-G5 - Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]17.25
[/TD]
[TD="align: right"]129.375
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Annette
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]02 Apr 2016
[/TD]
[TD]RGN-G5 - Sat Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]22.43
[/TD]
[TD="align: right"]168.225
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Annette
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]03 Apr 2016
[/TD]
[TD]RGN-G5 - Sun Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]27.60
[/TD]
[TD="align: right"]207
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]29 Mar 2016
[/TD]
[TD]HCA - Day
[/TD]
[TD]8.00
[/TD]
[TD]8.00
[/TD]
[TD]6.70
[/TD]
[TD="align: right"]53.6
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]28 Mar 2016
[/TD]
[TD]HCA - Bank Hol Day
[/TD]
[TD]7.00
[/TD]
[TD]7.00
[/TD]
[TD]8.50
[/TD]
[TD="align: right"]59.5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]30 Mar 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]14.50
[/TD]
[TD]14.50
[/TD]
[TD]7.00
[/TD]
[TD="align: right"]101.5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]28 Mar 2016
[/TD]
[TD]SW - Bank Hol Day
[/TD]
[TD]13.50
[/TD]
[TD]13.50
[/TD]
[TD]8.00
[/TD]
[TD="align: right"]108
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]03/04/2016
[/TD]
[TD]03 Apr 2016
[/TD]
[TD]SW - Sun Day
[/TD]
[TD]6.85
[/TD]
[TD]6.85
[/TD]
[TD]7.25
[/TD]
[TD="align: right"]49.6625
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Annette
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]05 Apr 2016
[/TD]
[TD]RGN-G5 - Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]17.25
[/TD]
[TD="align: right"]129.375
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]09 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]5.00
[/TD]
[TD]5.00
[/TD]
[TD]7.50
[/TD]
[TD="align: right"]37.5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]09 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]11.00
[/TD]
[TD]11.00
[/TD]
[TD]7.50
[/TD]
[TD="align: right"]82.5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Josh
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]06 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]8.00
[/TD]
[TD]8.00
[/TD]
[TD]7.20
[/TD]
[TD="align: right"]57.6
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]04 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]14.50
[/TD]
[TD]14.50
[/TD]
[TD]7.20
[/TD]
[TD="align: right"]104.4
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]05 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]7.20
[/TD]
[TD="align: right"]54
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]08 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]7.20
[/TD]
[TD="align: right"]54
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]09 Apr 2016
[/TD]
[TD]SW - Sat Day
[/TD]
[TD]7.50
[/TD]
[TD]7.50
[/TD]
[TD]7.25
[/TD]
[TD="align: right"]54.375
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tomasz
[/TD]
[TD="align: right"]10/04/2016
[/TD]
[TD]08 Apr 2016
[/TD]
[TD]SW - Day
[/TD]
[TD]7.00
[/TD]
[TD]7.00
[/TD]
[TD]7.20
[/TD]
[TD="align: right"]50.4
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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