Not a lot of detail to go on in your question. Excel has a MIN and MAX
function that you can probably use... check it out in the help files (click
the fx button to the left of the Formula Bar, select All in the category
drop down box, select either MIN or MAX in the list that gets displayed and
then click the "Help on this function" link at the bottom of the dialog
box).