Hi can anyone help with the following code for filtering Data and with Formulas for Counting Data?
I have Headers in Columns "A2:J2" and Data in "A3:J" Sheet1
I have the following macro that deletes all visible rows when filtering the data in columns "D:J" but I don't want to delete the 'Entire Rows' I only want to delete Data in columns "A3:J" and use 'delete ShiftUp' if possible?
Also, I have the following Formula that Counts Data from column "D"
Does anyone know how I can use this formula to count only the visible Data when filtering columns "D:J"
Formula '[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF(COUNTIF(D:J,$L3)=0,"",COUNTIF(D:J,$L3))'[/FONT]
Regards
pwill
I have Headers in Columns "A2:J2" and Data in "A3:J" Sheet1
I have the following macro that deletes all visible rows when filtering the data in columns "D:J" but I don't want to delete the 'Entire Rows' I only want to delete Data in columns "A3:J" and use 'delete ShiftUp' if possible?
Code:
[FONT=Verdana]Sub Filter()
[/FONT]
[FONT=Verdana]Dim Data As Worksheet: Set Data = Sheet1
Application.ScreenUpdating = False
With Data
.Range(.Range("A3:J3"), .Range("A3:J3").End(xlDown)).Delete Shift:=xlUp
.AutoFilterMode = False
End With
End Sub
[/FONT]
Also, I have the following Formula that Counts Data from column "D"
Does anyone know how I can use this formula to count only the visible Data when filtering columns "D:J"
Formula '[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF(COUNTIF(D:J,$L3)=0,"",COUNTIF(D:J,$L3))'[/FONT]
Regards
pwill
Last edited: