Sub SamT()
Dim Rw as Long
Dim IDStartRow As Long
Dim IDEndRow As Long
Dim QTRValue as String
Dim AMTValue as Long
IDstartRow = 2
Do While Cells(1, IDStartRow).Value <> ""
IDEndRow = IDStartRow
'Get the real IDEndRow number
Do until Cells(1, IDEndRow).Offset(1, 0).Value <> Cells(1, IDStartRow).Value
IDEndRow = IDEndRow + 1
Loop
'Find the QTR value
For Rw = IDStartRow to IDEndRow
If Cells(Rw, 2).Value <> "" Then
QTRValue = Cells(Rw, 2).Value
AMTValue = Cells(Rw, 3).Value
'assign the values here to insure a blank range will not be filled with false data.
Range(Cells(2, IDStartRow), Cells(2, IDEndRow)).Value = QTRValue
Range(Cells(3, IDStartRow), Cells(3, IDEndRow)).Value = AMTValue
Exit For 'Or Goto label after Next Rw. See next comment.
End If
Next Rw
IDStartRow = IDEndRow + 1
End While ' Or Loop while, I forget and My "office" computer is down.
End Sub