Check each column individually, and put a 1 or a 0 in a cell below each column. Then test that row of values for a 1. Not pretty, but functional.
Sorts are a simple task in Microsoft Excel if all you need is an ascending or descending sort. Excel is smart enough that it can interpret the data range. Not all sorts are so easy. Fortunately, Excel ...