This free Excel macro filters data in Excel using the autofilter feature in an Excel macro.
To use this macro all you need to do is to replace the "Enter Criteria Here" text with the text or numbers that you would like to filter your data by. Make sure that you keep the quotation marks around the filter text.
All of the elements below often appear within autofilter macros.
Range
Field
Criteria
Operator
Sub AutoFilter_in_Excel()
Range("A1").AutoFilter Field:=1, Criteria1:="Enter Criteria Here"
End Sub