Hi, if i have hundreds of lines all out of order that are set up like the first table; is there a way to sum the data by trips? A trip being consecutive days.
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Acct#[/TD]
[TD]Date[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]10/24/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]10/25/18[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]9/1/18[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]9/2/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]11/13/18[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]11/14/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]10/1/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]10/2/18[/TD]
[TD]75[/TD]
[/TR]
</tbody>[/TABLE]
Results with formulas in red highlighted cells
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Acct#[/TD]
[TD]Trip 1[/TD]
[TD]Trip 2[/TD]
[TD]Trip 3[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]150[/TD]
[TD]75[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]75[/TD]
[TD]125[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any help!
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Acct#[/TD]
[TD]Date[/TD]
[TD]Cost[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]10/24/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]10/25/18[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]9/1/18[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]9/2/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]11/13/18[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]11/14/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]10/1/18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]10/2/18[/TD]
[TD]75[/TD]
[/TR]
</tbody>[/TABLE]
Results with formulas in red highlighted cells
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Acct#[/TD]
[TD]Trip 1[/TD]
[TD]Trip 2[/TD]
[TD]Trip 3[/TD]
[/TR]
[TR]
[TD]3005[/TD]
[TD]150[/TD]
[TD]75[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3038[/TD]
[TD]75[/TD]
[TD]125[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks for any help!