Option Explicit
Sub Human()
Dim lngRow As Long
Dim lngQTY As Long
Dim lngQTYrow As Long
For lngRow = 1 To Range("A" & Rows.Count).End(xlUp).Row
If Cells(lngRow, 1) Like "*Qty. typical for *" Then
lngQTY = CLng(Trim(Replace(Cells(lngRow, 1), "Qty. typical for ", "")))
Cells(lngRow, 1) = ""
For lngQTYrow = lngRow + 2 To Range("B" & Rows.Count).End(xlUp).Row
If Cells(lngQTYrow, 2) = "" Then
lngRow = lngQTYrow
Exit For
Else
Cells(lngQTYrow, 2) = Cells(lngQTYrow, 2) * lngQTY
End If
Next
End If
Next
End Sub
Bookmarks