your payment date is a number - fix that and for this data - show us what you would like to see please
Thanks for the response.
This is the result I need to achieve[TABLE="width: 1040"]
<tbody>[TR]
[TD="colspan: 2"]
VAT Return Workings[/TD]
[TD][/TD]
[TD]
Period[/TD]
[TD="align: right"]
01/10/2013[/TD]
[TD="align: right"]
31/12/2013[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: left"]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]
OUTPUTS[/TD]
[TD]
Standard and Zero Rated[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
Payment Date[/TD]
[TD]
Details[/TD]
[TD]
Invoice[/TD]
[TD]
Gross[/TD]
[TD]
VAT Rate[/TD]
[TD]
Net[/TD]
[TD]
VAT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]09/10/2013[/TD]
[TD]Report/conference call[/TD]
[TD]006[/TD]
[TD]£1,200.00[/TD]
[TD]20[/TD]
[TD]£1,000.00[/TD]
[TD]£200.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]16/10/2013[/TD]
[TD]Retainer[/TD]
[TD]007[/TD]
[TD]£750.00[/TD]
[TD]0[/TD]
[TD]£750.00[/TD]
[TD]£0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]22/10/2013[/TD]
[TD]Expenses claimed from LeM[/TD]
[TD]008[/TD]
[TD]£75.60[/TD]
[TD]20[/TD]
[TD]£63.00[/TD]
[TD]£12.60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]22/10/2013[/TD]
[TD]Expenses claimed from LeM[/TD]
[TD]008[/TD]
[TD]£24.00[/TD]
[TD]20[/TD]
[TD]£20.00[/TD]
[TD]£4.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
£2,049.60[/TD]
[TD][/TD]
[TD]
£1,833.00[/TD]
[TD]
£216.60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
Payment Date[/TD]
[TD]
Details[/TD]
[TD]
Invoice[/TD]
[TD]
Gross[/TD]
[TD]
VAT Rate[/TD]
[TD]
Net[/TD]
[TD]
VAT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]16/10/2013[/TD]
[TD]Interest[/TD]
[TD][/TD]
[TD]£0.82[/TD]
[TD]OOS[/TD]
[TD]£0.82[/TD]
[TD]£0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]
£0.00[/TD]
[TD][/TD]
[TD]
£0.00[/TD]
[TD]
£0.00[/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col><col><col><col><col></colgroup>[/TABLE]
This is the macro I am currently using but I have to manually change the cell references if the input data has more entries or if the OOS references increase. This includes the macro part which formats the cells as dates and does some calculation via the sum function. It requires a lot of manual editing if new data is added to the receipts and payments sheets. Sub MoveOSSandformat()
' move OOS Receipts
Sheets("Report").Select
Range("A14:H15").Select
'cut selection from start of OOS and paste 4 cells down
Selection.Cut
Range("A19").Select
ActiveSheet.Paste
Range("B7:H7").Select
Selection.Copy
'copy heading range and paste 1 cell up from earlier paste
Range("B18").Select
ActiveSheet.Paste
Range("A40").Select
' move OOS Payments
Range("A45:H52").Select
'cut selection from start of OOS and paste 4 cells down
Selection.Cut
Range("A49").Select
ActiveSheet.Paste
Range("B38:H38").Select
Selection.Copy
'copy heading range and paste 1 cell up from earlier paste
Range("B48").Select
ActiveSheet.Paste
Columns("B:B").Select
Application.CutCopyMode = False
Selection.NumberFormat = "m/d/yyyy"
Range("A40").Select
' SumColumns Macro
Range("E17").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-7]C:R[-1]C)"
Range("G17").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-7]C:R[-1]C)"
Range("H17").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-7]C:R[-1]C)"
Range("E24").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"
Range("G24").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"
Range("H24").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-3]C:R[-1]C)"
Range("E72").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-32]C:R[-1]C)"
Range("G72").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-32]C:R[-1]C)"
Range("H72").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-32]C:R[-1]C)"
Range("E92").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-16]C:R[-1]C)"
Range("G92").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-16]C:R[-1]C)"
Range("H92").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-16]C:R[-1]C)"
Range("H92,G92,E92,E72,G72,H72,H24,G24,E24,E17,G17,H17").Select
Selection.Font.Bold = True
Range("E7:E92").Select
ActiveWindow.SmallScroll Down:=-51
Range("E7:E92,G7:H92").Select
Range("G7").Activate
Selection.NumberFormat = "$#,##0.00"
With Selection
.HorizontalAlignment = xlCenter
End With
Range("A2").Select
End Sub