Please can you help with a script - I have a spreadsheet used for expenses - if they have purchased the same item several times I would like to merge those rows and the totals so the item only appears i one row
[TABLE="width: 460"]
<tbody>[TR]
[TD="width: 50, bgcolor: transparent"]7801
[/TD]
[TD="width: 32, bgcolor: transparent"]T9
[/TD]
[TD="width: 119, bgcolor: transparent"]15/06/2018
[/TD]
[TD="width: 158, bgcolor: transparent"]Cleaning
[/TD]
[TD="width: 142, bgcolor: transparent"]Bags, Bleach, Sponges
[/TD]
[TD="width: 112, bgcolor: transparent"]6.00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7402
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]05/06/2018
[/TD]
[TD="bgcolor: transparent"]Accommodation/ meeting room
[/TD]
[TD="bgcolor: transparent"]Brighton accommodation
[/TD]
[TD="bgcolor: transparent"]49.99
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7402
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]11/06/2018
[/TD]
[TD="bgcolor: transparent"]Accommodation/ meeting room
[/TD]
[TD="bgcolor: transparent"]Brighton room hire
[/TD]
[TD="bgcolor: transparent"]12.00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]06/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]18/05/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]04/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]11/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]2.58
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]15/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]22/05/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk, Sugar
[/TD]
[TD="bgcolor: transparent"]1.99
[/TD]
[/TR]
</tbody>[/TABLE]
So in the example above- the details that are in column 'F' Milk would merge to one row and the total of all those rows would appear in column K - the row that says 'Milk, Sugar' would not merge with the others.
I would appreciate any help
Thanks
Marc
[TABLE="width: 460"]
<tbody>[TR]
[TD="width: 50, bgcolor: transparent"]7801
[/TD]
[TD="width: 32, bgcolor: transparent"]T9
[/TD]
[TD="width: 119, bgcolor: transparent"]15/06/2018
[/TD]
[TD="width: 158, bgcolor: transparent"]Cleaning
[/TD]
[TD="width: 142, bgcolor: transparent"]Bags, Bleach, Sponges
[/TD]
[TD="width: 112, bgcolor: transparent"]6.00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7402
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]05/06/2018
[/TD]
[TD="bgcolor: transparent"]Accommodation/ meeting room
[/TD]
[TD="bgcolor: transparent"]Brighton accommodation
[/TD]
[TD="bgcolor: transparent"]49.99
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7402
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]11/06/2018
[/TD]
[TD="bgcolor: transparent"]Accommodation/ meeting room
[/TD]
[TD="bgcolor: transparent"]Brighton room hire
[/TD]
[TD="bgcolor: transparent"]12.00
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]06/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]18/05/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]04/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]11/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]2.58
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]15/06/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk
[/TD]
[TD="bgcolor: transparent"]1.29
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]7406
[/TD]
[TD="bgcolor: transparent"]T9
[/TD]
[TD="bgcolor: transparent"]22/05/2018
[/TD]
[TD="bgcolor: transparent"]Refreshment-milk/sugar/etc
[/TD]
[TD="bgcolor: transparent"]Milk, Sugar
[/TD]
[TD="bgcolor: transparent"]1.99
[/TD]
[/TR]
</tbody>[/TABLE]
So in the example above- the details that are in column 'F' Milk would merge to one row and the total of all those rows would appear in column K - the row that says 'Milk, Sugar' would not merge with the others.
I would appreciate any help
Thanks
Marc