Code for minimum/maximum/average value for selected rows (Colomn wise values)?