How to get min/max from set rows and columns

Hey everyone, I need to process some large datasets. I have rows correlating to specific samples, but I don’t have the same number of data points for each sample; some samples have 3-4 data points, some only have 1. I also have several columns of different kinds of data for each sample. So I need the min/max of column 1, and of column 2, etc… with the ability to change or select based on sample number.

Example of a data set:

Sample     Data1       Data2     
1           12            44
1           13            54
1           10            60
2            8            55
3           10            43
3           12            42
4           10            54
5           13            41
5           12            39