floggingmolly
Board Regular
- Joined
- Sep 14, 2019
- Messages
- 167
- Office Version
- 365
- Platform
- Windows
I'm trying to use a filter formula using 1 of 2 criteria, or both depending on what the user selects. In cell B2 they can select a district, and in H2 then can select a station. I want the data to filter depending on what they choose. It's working if they select 1 criteria, for example if they choose a district in B2 then the data filters to that district. If they choose a Station in H2 the data filters to that station. But if they choose a district and a station, it only filters the district and still shows all stations for that district. Is there a way to make it filter by both criteria if they are both entered? I've tried for 2 days but can't get it. Any help would be appreciated. I'm not even sure if the Filter function can do this but thought I'd give it a shot. Here is the formula I'm using: =FILTER(ALL_DATA,((ALL_DATA[District]=B2) * (ALL_DATA[Station]=H2)) + ((ALL_DATA[District]=B2) + (ALL_DATA[Station]=H2)),"")