I would like to search and filter a column in my data, based on inclusion of either one of three criterias stored in another spreadsheet. For example, if the criterias are "Albert", "Bethany" and "Christine" I would like it to filter the specific column for everything that includes the three names given that all three criterias are filled in.
With two of the criterias below my array code successfully works, however, when including the third criteria (lcriteria) it does not allow me to find a match for any of the three criterias even though the first two was previously found. Anyone that knows what might be the problem or can help me out?
I am getting crazy over here... Thank you!
Here is my code:
If Not IsEmpty(Worksheets("Formstack").Range("M2")) Then
jCriteria = Worksheets("Formstack").Range("L2")
kCriteria = Worksheets("Formstack").Range("M2")
lCriteria = Worksheets("Formstack").Range("N2")
critArr = Array("*" & jCriteria & "*", "*" & kCriteria & "*", "*" & lCriteria & "*")
Worksheets("Data").Range("A1").AutoFilter Field:=1, Criteria1:=critArr, Operator:=xlFilterValues
End If