Hi all, I have the following formula that works fine and depends on if the user chooses a team in $D$5 or not:
I'm trying to figure out a way to exclude results in the filter if the user states "EXCLUDE" in cell $F$5 and any text/value is found in column (Data[NOTES]). If $F$5 contains "INCLUDE" or is empty I want it to include all results. I have tried various options but so far with no luck and I'm not sure if I'm overcomplicating the final formula so thought I'd look for ideas.
Thanks in advance
Excel Formula:
=IF($D$5="";TAKE(SORT(FILTER(Data[[PERIOD]:[SPECIAL]];(Data[TOTALT]>60)*(Data[PERIOD]=$B$6));$A$6;-1);$E$5);TAKE(SORT(FILTER(Data[[PERIOD]:[SPECIAL]];(Data[TOTALT]>60)*(Data[PERIOD]=$B$6)*(Data[TEAM]=$D$5));$A$6;-1);$E$5))
I'm trying to figure out a way to exclude results in the filter if the user states "EXCLUDE" in cell $F$5 and any text/value is found in column (Data[NOTES]). If $F$5 contains "INCLUDE" or is empty I want it to include all results. I have tried various options but so far with no luck and I'm not sure if I'm overcomplicating the final formula so thought I'd look for ideas.
Thanks in advance