Forum Discussion

Carl_Fromm's avatar
Carl_Fromm
Copper Contributor
Mar 11, 2024
Solved

XLOOKUP -return more than one result

Table 1 (master table) below lists various alternatives A1, A2... along with their ranks. As seen, A1 and A3 both have the same rank (#1). I'm using XLOOKUP to produce a derivative Table 2 where alte...
  • PeterBartholomew1's avatar
    Mar 12, 2024

    Carl_Fromm 

    It has just dawned on me that simple sorting the alternatives by rank might be a better way of achieving the objective.

    = SORTBY(Alternative, Rank)
    
    "or, if the rank is to be calculated,"
    
    = SORTBY(Alternative, RANK(num, num, -1))
    
    "where 'num' is the underlying sequence that was ranked."

Resources