Sub kenpcli()
Dim Ar As Areas
Dim Rng As Range
Dim ValU As Long
With Sheets("Analysis")
Set Ar = .Range("A6:A" & .Range("C" & Rows.Count).End(xlUp).Row).SpecialCells(xlBlanks).Areas
For Each Rng In Ar
Rng.Value = Evaluate("VLookup(" & Rng.Offset(-1).Resize(1).Address & ",'Legend Site'!A1:B1000, 2, False)")
Next Rng
End With
Columns(1).Insert
Rows(6).Insert
Range("A5:C5").Value = Array("MergeCells", "Site", "Ins")
Range("I5:J5").Value = Array("Amount Billed", "CA% ")
With Columns(3)
.Replace "Totals For SELF PAY", True, xlWhole, , False, , False, False
Set Ar = .SpecialCells(xlConstants, xlLogical).Areas
.Replace True, "Totals For SELF PAY", xlWhole, , False, , False, False
End With
For Each Rng In Ar
Rng.EntireRow.Copy Range("B" & Rows.Count).End(xlUp).Offset(1, -1)
Rng.EntireRow.Delete
Next Rng
End Sub