Attachment 846266 in post #7 is invalid.
try this
Sub test()
Dim r As Range, s As String
Sheets("sheet1").[a1].CurrentRegion.Clear
With Sheets("drawing log")
Set r = .[q1:q2]
r(2).Formula = "=and(isnumber(match(d9,{""Dwg Status"",""APP"",""R&R""},0))," & _
"f9<>""Completely released"",i9<>""Ae markup in hand"",or(g9>j9,j9=""""))"
With .Range("b8", .Range("b" & .Rows.Count).End(xlUp)).Resize(, 9)
.Offset(, 1).Rows(1).Resize(, 5).Copy Sheets("sheet1").[a1]
.AdvancedFilter 2, r, Sheets("sheet1").[a1].CurrentRegion
End With
r = ""
End With
With Sheets("sheet1").[a1].CurrentRegion
s = .Range("d2").NumberFormatLocal
With .Columns("d").Offset(1)
.NumberFormat = ""
.Replace 0, "", 1
.NumberFormatLocal = s
End With
End With
End Sub
Bookmarks