Forum Discussion
Excel FILTER built-in function
- May 07, 2021
- ericGuyaderBergerMay 07, 2021Copper Contributor
Thank you, this solution takes me a step further, as I can get the only values of my second column matching the criteria based on first column values.
But if it works as a cell's formula, it still doesn't work as a validation formula.- SergeiBaklanMay 07, 2021Diamond Contributor
Excel doesn't allow to use array formulas for data validation. You may generate spill by FILTER, even in another sheet (and hide it if necessary), use reference on this spill in data validation
- ericGuyaderBergerMay 07, 2021Copper Contributor
- SergeiBaklanMay 07, 2021Diamond Contributor
Thus formula is literally as above, use second column as first parameter and formula for criteria on first column as second parameter.
By the way, I try to play with Analyze Data on such table
asking
filter 'Two' where 'One' is a1 as table
Result is
with generated formula
=IF(SUM(ISERROR(Table1)*1,MIN(SUM(1-ISNUMBER(Table1[Two])),SUM(1-ISTEXT(Table1[Two]))))>0,NA(),SORT(UNIQUE(FILTER(Table1[Two],Table1[One]="a1"))))Bit overcomplicated, but that's robot. We may skip error handling and take only FILTER part.