Hey everyone - looking for some help on this:
My dataset is in large table formats, with dozens of fields, two of which will need to be filtered the same way every time, which I have working well below:
VSTACK(FILTER(INDIRECT(B1),(INDIRECT(B1&"["&B2&"]")<0),FILTER(INDIRECT(B1),((INDIRECT(B1&"["&C2&"]")=C3)+(INDIRECT(B1&"["&C2&"]")=D3))*(INDIRECT(B1&"["&D2&"]")=B3))))
B1 = Table Name
B2,C2,D2 = Column Names
B3,C3,D3 = Filter Names
What I'd like to do and can't seem to figure out is how to add in additional fields that are interchangeable, but if do not cancel out the result of the above formula. Think of the above as constants, and what i'm trying to add as variables. I've tried nesting the above indirect snippets with Iferror and using a toggle cell with an IF statement for the variables i've mentioned but can't quite get it to work right.
Appreciate any help.
- Thanks
My dataset is in large table formats, with dozens of fields, two of which will need to be filtered the same way every time, which I have working well below:
VSTACK(FILTER(INDIRECT(B1),(INDIRECT(B1&"["&B2&"]")<0),FILTER(INDIRECT(B1),((INDIRECT(B1&"["&C2&"]")=C3)+(INDIRECT(B1&"["&C2&"]")=D3))*(INDIRECT(B1&"["&D2&"]")=B3))))
B1 = Table Name
B2,C2,D2 = Column Names
B3,C3,D3 = Filter Names
What I'd like to do and can't seem to figure out is how to add in additional fields that are interchangeable, but if do not cancel out the result of the above formula. Think of the above as constants, and what i'm trying to add as variables. I've tried nesting the above indirect snippets with Iferror and using a toggle cell with an IF statement for the variables i've mentioned but can't quite get it to work right.
Appreciate any help.
- Thanks