david2312983
New Member
Hi
I'm attempting to return the next occurrence of a value in a list.
I have a list in column A with 6 %'s in. In column B there is a staff number that corresponds to the person who achieved the %.
[pre]
[/pre]
I'm then trying to put these values in a league, in ascending order by the %. The formula I've tried to used is =Large(A1:A6,1),=Large(A1:A6,2), etc. Then for the Staff code to appear next to the % in the league I have used =Vlookup(A1,A1:A6,2,0).
However, as there are multiple entries of 100% the staff code keeps returning 1 for each 100% entry, as it's next to the first 100% entry I presume. So I need to try and find the Nth_Occurrence, but I'm unsure how to do this.
Any help would be appreciated.
Thanks
I'm attempting to return the next occurrence of a value in a list.
I have a list in column A with 6 %'s in. In column B there is a staff number that corresponds to the person who achieved the %.
[pre]
Code:
A B
100% 1
100% 2
92.31% 3
100% 4
84.62% 5
100% 6
I'm then trying to put these values in a league, in ascending order by the %. The formula I've tried to used is =Large(A1:A6,1),=Large(A1:A6,2), etc. Then for the Staff code to appear next to the % in the league I have used =Vlookup(A1,A1:A6,2,0).
However, as there are multiple entries of 100% the staff code keeps returning 1 for each 100% entry, as it's next to the first 100% entry I presume. So I need to try and find the Nth_Occurrence, but I'm unsure how to do this.
Any help would be appreciated.
Thanks