jakeman
Active Member
- Joined
- Apr 29, 2008
- Messages
- 325
- Office Version
- 365
- Platform
- Windows
I built a filter for records using the FILTER function and so far it works great. The problem is that I have a need to make one aspect of my filter dynamic but I am not able to do it.
Here is my current formula.
The array constant part works fine but I realized that I have a need to change which columns I want to show in my formula and my preference would be to change the array constant to a dynamic array instead. I've tried different combinations but I cannot get anything to work. So instead of {1,6,17}, I'd prefer to use a range like B3:B5, which contains 3 different numbers that can change depending on selections made elsewhere.
Can anyone lend any ideas?
Thank you!
Here is my current formula.
Excel Formula:
=FILTER(INDEX(table1,SEQUENCE(ROWS(table1)),{1,6,17}),table1[LC1▲]=1)
The array constant part works fine but I realized that I have a need to change which columns I want to show in my formula and my preference would be to change the array constant to a dynamic array instead. I've tried different combinations but I cannot get anything to work. So instead of {1,6,17}, I'd prefer to use a range like B3:B5, which contains 3 different numbers that can change depending on selections made elsewhere.
Can anyone lend any ideas?
Thank you!