Sorry I missed that part the first time.
Give this a test. It utilizes Sheet3 to get a unique count of names and whether or not the total volumn is 0. If 0 then that person is deleted from Sheet1 and if not 0 then kept.
Sub Macro1()
Dim wsSrc As Worksheet: Set wsSrc = Sheets("Sheet1")
Dim wsDest As Worksheet: Set wsDest = Sheets("Sheet3")
Dim i As Long
Dim LR As Long
With wsSrc
.Columns("A:A").AdvancedFilter Action:=xlFilterCopy, _
CopyToRange:=wsDest.Range("A1"), Unique:=True
End With
With wsDest
.Range("B2:B" & .Range("A" & .Rows.Count).End(xlUp).Row).FormulaR1C1 _
= "=SUMIF(Sheet1!R2C1:R151C1,RC[-1],Sheet1!R2C3:R151C3)"
LR = .Range("A" & .Rows.Count).End(xlUp).Row
For i = 2 To LR
If .Range("B" & i).Value = 0 Then
With wsSrc
With .Range("A1", .Range("A" & .Rows.Count).End(xlUp))
.AutoFilter field:=1, Criteria1:=wsDest.Range("A" & i).Value
.Offset(1).EntireRow.Delete
.AutoFilter
End With
End With
End If
Next i
End With
End Sub
Bookmarks