Transfer you data to cells A2 to B10.
In cells E6 to E20, enter the Numbers 1, 2, 3, ..
In cell C2, enter the below formula and drag it down.
In cell F6, enter the below formula and drag it down.
Change the cell references as required.
I hope this is will solve your problem.
<colgroup><col style="width:48pt" width="64" span="4"> <col style="mso-width-source:userset;mso-width-alt:4807;width:101pt" width="135"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="class: xl65, width: 64"]
[/TD]
[TD="class: xl65, width: 64"] [/TD]
[TD="class: xl65, width: 64"] [/TD]
[TD="class: xl65, width: 64"] [/TD]
[TD="class: xl65, width: 135"] [/TD]
[TD="class: xl65, width: 64"] [/TD]
[TD="class: xl66, align: right"]34
[/TD]
[TD="class: xl65"]John[/TD]
[TD="class: xl65, align: right"]1
[/TD]
[TD="class: xl65"]
[/TD]
[TD="class: xl65"]COST CENTRE[/TD]
[TD="class: xl65, align: right"]34[/TD]
[TD="class: xl66, align: right"]34
[/TD]
[TD="class: xl65"]John[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]NUMBER OF ENTRIES[/TD]
[TD="class: xl65, align: right"]2[/TD]
[TD="class: xl66, align: right"]34[/TD]
[TD="class: xl65"]Adam[/TD]
[TD="class: xl65, align: right"]2[/TD]
[TD="class: xl65"]
[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl66, align: right"]25[/TD]
[TD="class: xl65"]Kelly[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"]
[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl66, align: right"]25[/TD]
[TD="class: xl65"]Kelly[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]1[/TD]
[TD="class: xl65"]John[/TD]
[TD="class: xl66, align: right"]34[/TD]
[TD="class: xl65"]Adam[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]2[/TD]
[TD="class: xl65"]Adam[/TD]
[TD="class: xl66, align: right"]12[/TD]
[TD="class: xl65"]Jim[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]3[/TD]
[TD="class: xl65"]-
[/TD]
[TD="class: xl66, align: right"]12[/TD]
[TD="class: xl65"]Jim[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]4[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl66, align: right"]12[/TD]
[TD="class: xl65"]Jim[/TD]
[TD="class: xl65"]-[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65, align: right"]5[/TD]
[TD="class: xl65"]-[/TD]
</tbody>