Hi guys this is a sample data for the problem;
I would like to know a vba and formula solution if possible please as this may help me further down the line.
Thanks so much!
[TABLE="width: 368"]
<tbody>[TR]
[TD]id[/TD]
[TD]company name[/TD]
[TD]Value[/TD]
[TD]Value date[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£1,002[/TD]
[TD="align: right"]31/05/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£2,004[/TD]
[TD="align: right"]30/06/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£4,008[/TD]
[TD="align: right"]31/07/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£8,016[/TD]
[TD="align: right"]31/08/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£16,032[/TD]
[TD="align: right"]30/09/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£32,064[/TD]
[TD="align: right"]31/10/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£64,128[/TD]
[TD="align: right"]30/11/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£128,256[/TD]
[TD="align: right"]31/12/2015[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£256,512[/TD]
[TD="align: right"]31/01/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£513,024[/TD]
[TD="align: right"]29/02/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£1,026,048[/TD]
[TD="align: right"]31/03/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£2,052,096[/TD]
[TD="align: right"]30/04/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£4,104,192[/TD]
[TD="align: right"]31/05/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£8,208,384[/TD]
[TD="align: right"]30/06/2016[/TD]
[/TR]
[TR]
[TD]bb23[/TD]
[TD]Auto Fiedelity sales[/TD]
[TD="align: right"]£16,416,768[/TD]
[TD="align: right"]31/07/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£3,001[/TD]
[TD="align: right"]31/03/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£3,601.20[/TD]
[TD="align: right"]30/04/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£4,321.44[/TD]
[TD="align: right"]31/05/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£5,185.73[/TD]
[TD="align: right"]30/06/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£6,222.87[/TD]
[TD="align: right"]31/07/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£7,467.45[/TD]
[TD="align: right"]31/08/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£8,960.94[/TD]
[TD="align: right"]30/09/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£10,753.13[/TD]
[TD="align: right"]31/10/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£12,903.75[/TD]
[TD="align: right"]30/11/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£15,484.50[/TD]
[TD="align: right"]31/12/2016[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£18,581.40[/TD]
[TD="align: right"]31/01/2017[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£22,297.68[/TD]
[TD="align: right"]28/02/2017[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£26,757.22[/TD]
[TD="align: right"]31/03/2017[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£32,108.66[/TD]
[TD="align: right"]30/04/2017[/TD]
[/TR]
[TR]
[TD]bb54[/TD]
[TD]Hertford auto trades[/TD]
[TD="align: right"]£38,530.39[/TD]
[TD="align: right"]31/05/2017[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,005.00[/TD]
[TD="align: right"]31/05/2017[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,105.25[/TD]
[TD="align: right"]£42,916.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,210.51[/TD]
[TD="align: right"]£42,947.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,321.04[/TD]
[TD="align: right"]£42,978.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,437.09[/TD]
[TD="align: right"]£43,008.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,558.94[/TD]
[TD="align: right"]£43,039.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,686.89[/TD]
[TD="align: right"]£43,069.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,821.24[/TD]
[TD="align: right"]£43,100.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£2,962.30[/TD]
[TD="align: right"]£43,131.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£3,110.41[/TD]
[TD="align: right"]£43,159.00[/TD]
[/TR]
[TR]
[TD]bb16[/TD]
[TD]smith automotives[/TD]
[TD="align: right"]£3,265.93[/TD]
[TD="align: right"]£43,190.00[/TD]
[/TR]
</tbody>[/TABLE]