Try this code to see if this works as per your requirement.
Sub ploppmongo()
Dim sws, dws As Worksheet
Dim rng, cell As Range
Dim lr, i As Long
Dim hr, amt As Double
Dim days As Integer
Set sws = ThisWorkbook.Sheets("Input")
Set dws = ThisWorkbook.Sheets("Output")
lr = sws.Cells(Rows.Count, 1).End(xlUp).Row
Set rng = sws.Range("J2:J" & lr)
sws.Range("A1:O1").Copy dws.Range("A1")
For Each cell In rng
hr = cell.Offset(0, -1) / cell
days = cell / cell
amt = cell.Offset(0, 5) / cell
For i = 1 To cell
sws.Range("A" & cell.Row & ":O" & cell.Row).Copy dws.Range("A" & Rows.Count).End(3)(2)
dws.Range("I" & Rows.Count).End(3)(1).Value = hr
dws.Range("J" & Rows.Count).End(3)(1).Value = days
dws.Range("O" & Rows.Count).End(3)(1).Value = amt
dws.Range("I" & Rows.Count).End(3)(1).NumberFormat = "0.00"
Next i
Next cell
End Sub
Bookmarks