Ctrl + Shift + LHeader row spans more than one row or has gaps
Excel cannot reliably detect the filter range if the header occupies two rows or has blank cells in it. Consolidate headers into a single row, then re-apply the filter with Ctrl+Shift+L.
Tip: Suspect the table structure first — it's the fastest path to the fix.