max and min for columnwise summary