Hi, AMJ,
what shall go into Columns M and N? If you attach a sample it would be nice to see the data before and after to know what to code for.
Edit:
maybe I figured put what you are after.
Sub EF1021330()
Dim lngCol As Long
Dim lngRC As Long
Dim blnSkip As Boolean
lngCol = 3
For lngRC = 3 To Range("B" & Rows.Count).End(xlUp).Row
Do
If Cells(lngRC, lngCol).Value > 0 Then
If blnSkip = False Then
Cells(lngRC, "M").Value = Cells(2, lngCol).Value
End If
blnSkip = True
Else
If blnSkip = True Then
Cells(lngRC, "N").Value = Cells(2, lngCol - 1).Value
End If
blnSkip = False
End If
lngCol = lngCol + 1
Loop While lngCol < 13
lngCol = 3
Next lngRC
End Sub
Ciao,
Holger
Bookmarks