
VBA Filter in Excel — Subset an Array in One Call, and Why It Is Not AutoFilter
The VBA Filter function takes a one-dimensional string array and returns a new, smaller array holding only the elements that contain a substring you name — it is the array cousin of InStr, and it never touches a cell. This guide untangles the constant confusion with AutoFilter (a worksheet method that hides rows), then covers the three traps that make Filter look broken: it matches substrings not whole values, it is case-sensitive by default until you pass vbTextCompare, and it returns a zero-based array whose UBound is minus one when nothing matches.






























































































![Excel Sum of Time Over 24 Hours — Why Your Total Resets (and the [h]:mm Fix)](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fblog-assets%2Fexcel-sum-time-over-24-hours%2Fhero.png&w=1200&q=75)







































































































![How to Convert .xlsb to .xlsx — 5 Free Methods (Excel, Online, Python, VBA) [2026]](/_next/image?url=https%3A%2F%2Fexcelmasterstore.blob.core.windows.net%2Fexcelmaster%2Fcms%2Fcovers%2Fv2-launch-agent-excel.png&w=1200&q=75)





















