Hello
I have some raw data and I would like to sum my profit in the following group:
1. summing all count of negative value in one group
2 summing all count of $0.00 to $500.00
3 Summing all count $501.00 to $1000.00
4. Summing all count $1001.00 to $1500.00
5 summing all count above $1500.00
I need to group the last column on the table below
[TABLE="width: 770"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Acquired Date[/TD]
[TD]Stock Number[/TD]
[TD]Contract Date[/TD]
[TD]Make[/TD]
[TD]Model[/TD]
[TD]Year Model
[/TD]
[TD]Profit Commision Gross Profit[/TD]
[/TR]
[TR]
[TD="align: right"]8/5/2015 0:00[/TD]
[TD="align: right"]3036[/TD]
[TD="align: right"]11/25/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Sierra 1500[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]-4475.08[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015 0:00[/TD]
[TD="align: right"]3040[/TD]
[TD="align: right"]10/26/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]4Runner[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]-3262.07[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3071[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 2500HD[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]-1645.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/6/2015 0:00[/TD]
[TD="align: right"]3039[/TD]
[TD="align: right"]11/23/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 3500HD[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]-708.04[/TD]
[/TR]
[TR]
[TD="align: right"]8/19/2015 0:00[/TD]
[TD="align: right"]3060[/TD]
[TD="align: right"]11/14/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Suburban[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]-212.91[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3072[/TD]
[TD="align: right"]10/29/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Savana[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]-148.42[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3067[/TD]
[TD="align: right"]11/10/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]-34.47[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3068[/TD]
[TD="align: right"]11/12/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]29.08[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015 0:00[/TD]
[TD="align: right"]3045[/TD]
[TD="align: right"]10/31/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Suburban[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]123.1[/TD]
[/TR]
[TR]
[TD="align: right"]9/15/2015 0:00[/TD]
[TD="align: right"]3095[/TD]
[TD="align: right"]10/17/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]147.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/18/2015 0:00[/TD]
[TD="align: right"]3059[/TD]
[TD="align: right"]11/6/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]180.17[/TD]
[/TR]
[TR]
[TD="align: right"]8/14/2015 0:00[/TD]
[TD="align: right"]3054[/TD]
[TD="align: right"]11/2/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]382.78[/TD]
[/TR]
[TR]
[TD="align: right"]8/5/2015 0:00[/TD]
[TD="align: right"]3038[/TD]
[TD="align: right"]10/16/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]383.87[/TD]
[/TR]
[TR]
[TD="align: right"]8/13/2015 0:00[/TD]
[TD="align: right"]3052[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]471.44[/TD]
[/TR]
[TR]
[TD="align: right"]10/17/2015 0:00[/TD]
[TD="align: right"]3132[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]533.42[/TD]
[/TR]
[TR]
[TD="align: right"]8/11/2015 0:00[/TD]
[TD="align: right"]3048[/TD]
[TD="align: right"]10/10/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]535.02[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3065[/TD]
[TD="align: right"]10/30/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Sierra 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]556.94[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3077[/TD]
[TD="align: right"]10/15/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2010[/TD]
[TD="align: right"]557.45[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3074[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]2500[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]637.24[/TD]
[/TR]
[TR]
[TD="align: right"]8/11/2015 0:00[/TD]
[TD="align: right"]3049[/TD]
[TD="align: right"]11/3/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]3500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]874.89[/TD]
[/TR]
[TR]
[TD="align: right"]8/15/2015 0:00[/TD]
[TD="align: right"]3056[/TD]
[TD="align: right"]9/22/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]Ranger[/TD]
[TD="align: right"]2010[/TD]
[TD="align: right"]910.55[/TD]
[/TR]
[TR]
[TD="align: right"]8/21/2015 0:00[/TD]
[TD="align: right"]3064[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]Dodge[/TD]
[TD]Ram 2500[/TD]
[TD="align: right"]2009[/TD]
[TD="align: right"]980.45[/TD]
[/TR]
[TR]
[TD="align: right"]9/9/2015 0:00[/TD]
[TD="align: right"]3090[/TD]
[TD="align: right"]10/26/2015 0:00[/TD]
[TD]Kia[/TD]
[TD]Sorento[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1211.32[/TD]
[/TR]
[TR]
[TD="align: right"]10/15/2015 0:00[/TD]
[TD="align: right"]3126[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]F-150[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]1245.08[/TD]
[/TR]
[TR]
[TD="align: right"]10/27/2015 0:00[/TD]
[TD="align: right"]3148[/TD]
[TD="align: right"]11/27/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]1275.05[/TD]
[/TR]
[TR]
[TD="align: right"]8/27/2015 0:00[/TD]
[TD="align: right"]3069[/TD]
[TD="align: right"]10/31/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 2500HD[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1309.18[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015 0:00[/TD]
[TD="align: right"]3043[/TD]
[TD="align: right"]9/26/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1417.28[/TD]
[/TR]
[TR]
[TD="align: right"]10/8/2015 0:00[/TD]
[TD="align: right"]3121[/TD]
[TD="align: right"]11/25/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]2500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]1476.1[/TD]
[/TR]
[TR]
[TD="align: right"]9/24/2015 0:00[/TD]
[TD="align: right"]3106[/TD]
[TD="align: right"]10/12/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]Explorer Sport Trac[/TD]
[TD="align: right"]2008[/TD]
[TD="align: right"]1600.83[/TD]
[/TR]
[TR]
[TD="align: right"]8/20/2015 0:00[/TD]
[TD="align: right"]3061[/TD]
[TD="align: right"]11/7/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]1636.89[/TD]
[/TR]
[TR]
[TD="align: right"]9/9/2015 0:00[/TD]
[TD="align: right"]3091[/TD]
[TD="align: right"]10/30/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]3500[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1637.35[/TD]
[/TR]
</tbody>[/TABLE]
I have some raw data and I would like to sum my profit in the following group:
1. summing all count of negative value in one group
2 summing all count of $0.00 to $500.00
3 Summing all count $501.00 to $1000.00
4. Summing all count $1001.00 to $1500.00
5 summing all count above $1500.00
I need to group the last column on the table below
[TABLE="width: 770"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Acquired Date[/TD]
[TD]Stock Number[/TD]
[TD]Contract Date[/TD]
[TD]Make[/TD]
[TD]Model[/TD]
[TD]Year Model
[/TD]
[TD]Profit Commision Gross Profit[/TD]
[/TR]
[TR]
[TD="align: right"]8/5/2015 0:00[/TD]
[TD="align: right"]3036[/TD]
[TD="align: right"]11/25/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Sierra 1500[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]-4475.08[/TD]
[/TR]
[TR]
[TD="align: right"]8/7/2015 0:00[/TD]
[TD="align: right"]3040[/TD]
[TD="align: right"]10/26/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]4Runner[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]-3262.07[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3071[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 2500HD[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]-1645.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/6/2015 0:00[/TD]
[TD="align: right"]3039[/TD]
[TD="align: right"]11/23/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 3500HD[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]-708.04[/TD]
[/TR]
[TR]
[TD="align: right"]8/19/2015 0:00[/TD]
[TD="align: right"]3060[/TD]
[TD="align: right"]11/14/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Suburban[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]-212.91[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3072[/TD]
[TD="align: right"]10/29/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Savana[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]-148.42[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3067[/TD]
[TD="align: right"]11/10/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]-34.47[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3068[/TD]
[TD="align: right"]11/12/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]29.08[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015 0:00[/TD]
[TD="align: right"]3045[/TD]
[TD="align: right"]10/31/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Suburban[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]123.1[/TD]
[/TR]
[TR]
[TD="align: right"]9/15/2015 0:00[/TD]
[TD="align: right"]3095[/TD]
[TD="align: right"]10/17/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]2013[/TD]
[TD="align: right"]147.61[/TD]
[/TR]
[TR]
[TD="align: right"]8/18/2015 0:00[/TD]
[TD="align: right"]3059[/TD]
[TD="align: right"]11/6/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]180.17[/TD]
[/TR]
[TR]
[TD="align: right"]8/14/2015 0:00[/TD]
[TD="align: right"]3054[/TD]
[TD="align: right"]11/2/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]382.78[/TD]
[/TR]
[TR]
[TD="align: right"]8/5/2015 0:00[/TD]
[TD="align: right"]3038[/TD]
[TD="align: right"]10/16/2015 0:00[/TD]
[TD]Jeep[/TD]
[TD]Wrangler[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]383.87[/TD]
[/TR]
[TR]
[TD="align: right"]8/13/2015 0:00[/TD]
[TD="align: right"]3052[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]471.44[/TD]
[/TR]
[TR]
[TD="align: right"]10/17/2015 0:00[/TD]
[TD="align: right"]3132[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]533.42[/TD]
[/TR]
[TR]
[TD="align: right"]8/11/2015 0:00[/TD]
[TD="align: right"]3048[/TD]
[TD="align: right"]10/10/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]535.02[/TD]
[/TR]
[TR]
[TD="align: right"]8/25/2015 0:00[/TD]
[TD="align: right"]3065[/TD]
[TD="align: right"]10/30/2015 0:00[/TD]
[TD]GMC[/TD]
[TD]Sierra 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]556.94[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3077[/TD]
[TD="align: right"]10/15/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2010[/TD]
[TD="align: right"]557.45[/TD]
[/TR]
[TR]
[TD="align: right"]8/28/2015 0:00[/TD]
[TD="align: right"]3074[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]2500[/TD]
[TD="align: right"]2015[/TD]
[TD="align: right"]637.24[/TD]
[/TR]
[TR]
[TD="align: right"]8/11/2015 0:00[/TD]
[TD="align: right"]3049[/TD]
[TD="align: right"]11/3/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]3500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]874.89[/TD]
[/TR]
[TR]
[TD="align: right"]8/15/2015 0:00[/TD]
[TD="align: right"]3056[/TD]
[TD="align: right"]9/22/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]Ranger[/TD]
[TD="align: right"]2010[/TD]
[TD="align: right"]910.55[/TD]
[/TR]
[TR]
[TD="align: right"]8/21/2015 0:00[/TD]
[TD="align: right"]3064[/TD]
[TD="align: right"]11/16/2015 0:00[/TD]
[TD]Dodge[/TD]
[TD]Ram 2500[/TD]
[TD="align: right"]2009[/TD]
[TD="align: right"]980.45[/TD]
[/TR]
[TR]
[TD="align: right"]9/9/2015 0:00[/TD]
[TD="align: right"]3090[/TD]
[TD="align: right"]10/26/2015 0:00[/TD]
[TD]Kia[/TD]
[TD]Sorento[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1211.32[/TD]
[/TR]
[TR]
[TD="align: right"]10/15/2015 0:00[/TD]
[TD="align: right"]3126[/TD]
[TD="align: right"]10/24/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]F-150[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]1245.08[/TD]
[/TR]
[TR]
[TD="align: right"]10/27/2015 0:00[/TD]
[TD="align: right"]3148[/TD]
[TD="align: right"]11/27/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]1275.05[/TD]
[/TR]
[TR]
[TD="align: right"]8/27/2015 0:00[/TD]
[TD="align: right"]3069[/TD]
[TD="align: right"]10/31/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 2500HD[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1309.18[/TD]
[/TR]
[TR]
[TD="align: right"]8/8/2015 0:00[/TD]
[TD="align: right"]3043[/TD]
[TD="align: right"]9/26/2015 0:00[/TD]
[TD]Toyota[/TD]
[TD]Tundra[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1417.28[/TD]
[/TR]
[TR]
[TD="align: right"]10/8/2015 0:00[/TD]
[TD="align: right"]3121[/TD]
[TD="align: right"]11/25/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]2500[/TD]
[TD="align: right"]2014[/TD]
[TD="align: right"]1476.1[/TD]
[/TR]
[TR]
[TD="align: right"]9/24/2015 0:00[/TD]
[TD="align: right"]3106[/TD]
[TD="align: right"]10/12/2015 0:00[/TD]
[TD]Ford[/TD]
[TD]Explorer Sport Trac[/TD]
[TD="align: right"]2008[/TD]
[TD="align: right"]1600.83[/TD]
[/TR]
[TR]
[TD="align: right"]8/20/2015 0:00[/TD]
[TD="align: right"]3061[/TD]
[TD="align: right"]11/7/2015 0:00[/TD]
[TD]Chevrolet[/TD]
[TD]Silverado 1500[/TD]
[TD="align: right"]2011[/TD]
[TD="align: right"]1636.89[/TD]
[/TR]
[TR]
[TD="align: right"]9/9/2015 0:00[/TD]
[TD="align: right"]3091[/TD]
[TD="align: right"]10/30/2015 0:00[/TD]
[TD]RAM[/TD]
[TD="align: right"]3500[/TD]
[TD="align: right"]2012[/TD]
[TD="align: right"]1637.35[/TD]
[/TR]
</tbody>[/TABLE]