sortby returns 0

Copper Contributor

When I type =sortby(a2:h2316,g2:g2316,1,h2:h2316,-1) a 0 show up in the cell.

 

Here's the beginning of the table

 

112345  
abackaback10.9308
abaseabase11.3058
abateabate11.3058
abbeyabbey10.0000
abbotabbot11.8961
abhorabhor00.8750
abideabide00.5000
abledabled00.0000
abodeabode00.9308
abortabort01.9519
aboutabout02.8269
aboveabove00.9308
abuseabuse01.3750
abyssabyss11.7072
acornacorn01.4308
1 Reply

@james-morris Copied your sample data and formula. Adjusted only the ranges to match the size of the data and it seems to work as intended. Sort the entire table, first by column G, then by column H.

Screenshot 2022-02-23 at 07.34.31.png

File attached.