With Worksheets("Data")
With .Range(.Range("G5"), .Cells(.Rows.Count, 7).End(xlUp))
With Worksheets("Copy").Cells(1).Resize(.Rows.Count \ 3 + 1, 3).Cells
.Formula = "=TEXT(OFFSET(Data!$G$5,(ROW()-1)*3+MOD(COLUMN()+2,3),0),""#"")"
.Value = .Value
End With 'Worksheets("Copy").Cells(1).Resize(.Rows.Count \ 3 + 1, 3).Cells
End With '.Range(.Range("G5"), .Cells(.Rows.Count, 7).End(xlUp))
End With 'Worksheets("Data")
End Subcitovat