A few new concepts to explore
Option Explicit
Sub search_and_extract()
'1. declare and set variables
'2. find records that match criteria, insert row and past them in report sheet
Dim Query As Worksheet
Dim Analysis As Worksheet
Dim account As Long
Dim arr As Range, a As Range, c As Range, tgt As Range
'set variables
Set Analysis = Sheet2
Set Query = Sheet1
account = Analysis.Range("E2").Value
Query.Columns("C:C").AutoFilter Field:=1, Criteria1:=account
Set arr = Analysis.Columns(2).SpecialCells(xlCellTypeConstants)
For Each a In arr.Cells
Set c = Query.Columns(1).Find(a)
If Not c Is Nothing Then
Set tgt = Analysis.Columns(5).Find(a, lookat:=xlPart).Offset(-2, -1)
c.Offset(, 3).Resize(, 3).Copy tgt
tgt.Offset(1).EntireRow.Insert
End If
Next
Query.Columns("C:C").AutoFilter
End Sub