I'm trying to use countif within VBA with multiple OR criteria and I found the old post below:
Countif With Multiple OR Criteria
However when I try to use it in my project it returns "Compilation error: invalid character."
This is the line I'm trying to compile:
pExcludedItems = Sum(CountIf(.Range(.Cells(2, colKeep), .Cells(pNumStdData, colKeep)), {"E", "E_*"}))
Also tried:
pExcludedItems = Sum(CountIf(.Range(.Cells(2, colKeep), .Cells(pNumStdData, colKeep)), {""E"", ""E_*""}))
Can't find a solution elsewhere. Thank you very much.