Say you have data in cols A thru Y and the sum for each row in col Z. Hi-light the entire table (data and totals) and touch Sort & Filter > Custom Sort and then make your selections,