Glen, In your example do you use the numbers in the left column for anything? Are they just the line numbers? Mike Example: 1 23 2 12 3 9 4 77 5 2 6 13 7 44 8 83 9 2 10 37 In this example the result would be **Note if one or more values are the min or max the the first value found can be used 5 2 8 83