Hi everyone,
I have an Excel sheet that looks something like this (somehow the upload function here doesn't work for me so I have to show it like this, I hope it's understandable):
1 5
1 4
1 2
1 6
1 3
2 4
2 2
3 1
3 5
3 7
3 4
3 2
...etc.
So on the left I have an index of the subgroup to which the value on the right corresponds (so if we say they are test subjects, subject 1 has the values 5, 4, 2, 6 and 3). The amount of values each of those test subjects on the left has varies, but they are all numbered from 1 to around 300 (so it always goes up by 1 at some point, it's like a counter).
What I'm trying to do now is find the maximum value in the 2nd column for each test subject. So in this case I would like to find (and put down somewhere) the value 6 for subject 1, 4 for subject 2 and 7 for subject 3. I've been trying to do this in VBA but couldn't get it done. I know there's a Max Formula but I don't know if I can easily automate this within Excel itself so I don't have to do it manually?
Thank you for your help!
I have an Excel sheet that looks something like this (somehow the upload function here doesn't work for me so I have to show it like this, I hope it's understandable):
1 5
1 4
1 2
1 6
1 3
2 4
2 2
3 1
3 5
3 7
3 4
3 2
...etc.
So on the left I have an index of the subgroup to which the value on the right corresponds (so if we say they are test subjects, subject 1 has the values 5, 4, 2, 6 and 3). The amount of values each of those test subjects on the left has varies, but they are all numbered from 1 to around 300 (so it always goes up by 1 at some point, it's like a counter).
What I'm trying to do now is find the maximum value in the 2nd column for each test subject. So in this case I would like to find (and put down somewhere) the value 6 for subject 1, 4 for subject 2 and 7 for subject 3. I've been trying to do this in VBA but couldn't get it done. I know there's a Max Formula but I don't know if I can easily automate this within Excel itself so I don't have to do it manually?
Thank you for your help!