FILTER.SORTED function

Filter.Sorted filters out subsets of sorted data using multiple extended conditions.

FILTER.SORTED is a simpler way of using FILTER.IFS when the first criteria is sorted.

FILTER.SORTED Syntax

FILTER.SORTED(RangeArray,ReturnCol,CriteriaColumn1,Criteria1,
CriteriaColumn2,Criteria2, …, ["#OR#", nSortedCrits,] CriteriaColumnx, Criteriax, …)

See FILTER.IFS for definitions of the parameters for FILTER.SORTED

The RangeArray may optionally contain column labels in the first row, in which case at least one of the criteria columns or return column should be identified using a label. If you only use column numbers then the RangeArray should NOT include labels

If nSortedCrits is NOT equal to zero the RangeArray must be sorted on the criteria columns in the DataRange.