Note: In order to use the spreadsheet examples, you need to download Business Functions | ||||||||
SortNum (Values, [Direction]) | ||||||||
Sort a range of numbers | ||||||||
SortNum is an array function that sorts an 1 dimensional range of numbers, either in an ascending or descending sort. | ||||||||
Whats good or unique about it | ||||||||
SortNum is one of the few ways to sort data with a single formula in Excel without using a macro or menu option. That means the sorted results can be "live", responding to each calculation of your spreadsheet, | ||||||||
Methodology | ||||||||
SortNum uses the "heap sort " technique. | ||||||||
References | ||||||||
Robert Sedgewick, 1998, Algorithms in C++ Parts 1-4, ISBN 0-201035088-2 | ||||||||
ExampleSortNum.xls |