dynamic filter header

JugglerJAF

Active Member
Joined
Feb 17, 2002
Messages
289
Office Version
  1. 365
Platform
  1. Windows
Hi folks, I've been playing around with the dynamic filter function, and have noticed what appears to be some inconsistent behaviour...

Sometimes when using the filter function, the results usually return just the values under each header from the source, but occasionally they do return the header row as well.

It doesn't seem to make any difference if the source is set up as a table or just a range, or if I use relative or absolute cell references. I do have the "use table names in formulas" setting turned off as I absolutely detest that "feature" (I think it makes formulas harder to read, not easier!)

The headers don't usually get returned, but every now and then they do and there doesn't seem to be any logic or consistency behind whether the headers are returned or not and I'd like to be able to choose to include or exclude them rather than having it "random".

Is there any way to specifically structure the formula, or the data to ensure that the header values are returned by the dynamic filter function?

Example below:

filter - no header row.png
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=FILTER(A1:E31,(D1:D31="alpha")+(D1:D31="department"))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
77,891
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.

I would also suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using. (Don’t forget to scroll down & ‘Save’)
 

Forum statistics

Threads
1,176,616
Messages
5,904,032
Members
435,068
Latest member
StacyJ01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top