Hello,
I am trying to rank the employees based on the percentage of return ticket sales. But only if they sold more than 2000 tickets. I am unable to work out the formula for this. Can someone her help me on this?
Here is the sample table and Rank is the desired answer.
[TABLE="width: 277"]
<colgroup><col><col><col span="3"></colgroup><tbody>[TR]
[TD]Staff ID[/TD]
[TD]Rank[/TD]
[TD]Tickets Sold[/TD]
[TD]Retrurn Tickets[/TD]
[TD]Percent[/TD]
[/TR]
[TR]
[TD]180[/TD]
[TD]1[/TD]
[TD="align: right"]2866[/TD]
[TD="align: right"]1155[/TD]
[TD="align: right"]40.3%[/TD]
[/TR]
[TR]
[TD]299[/TD]
[TD]2[/TD]
[TD="align: right"]3092[/TD]
[TD="align: right"]1188[/TD]
[TD="align: right"]38.4%[/TD]
[/TR]
[TR]
[TD]168[/TD]
[TD] [/TD]
[TD="align: right"]1370[/TD]
[TD="align: right"]493[/TD]
[TD="align: right"]36.0%[/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD] [/TD]
[TD="align: right"]247[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]35.2%[/TD]
[/TR]
[TR]
[TD]300[/TD]
[TD] [/TD]
[TD="align: right"]1423[/TD]
[TD="align: right"]490[/TD]
[TD="align: right"]34.4%[/TD]
[/TR]
[TR]
[TD]229[/TD]
[TD] [/TD]
[TD="align: right"]318[/TD]
[TD="align: right"]109[/TD]
[TD="align: right"]34.3%[/TD]
[/TR]
[TR]
[TD]93[/TD]
[TD] [/TD]
[TD="align: right"]1258[/TD]
[TD="align: right"]411[/TD]
[TD="align: right"]32.7%[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD] [/TD]
[TD="align: right"]614[/TD]
[TD="align: right"]197[/TD]
[TD="align: right"]32.1%[/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD]3[/TD]
[TD="align: right"]3169[/TD]
[TD="align: right"]1010[/TD]
[TD="align: right"]31.9%[/TD]
[/TR]
[TR]
[TD]190[/TD]
[TD]4[/TD]
[TD="align: right"]2743[/TD]
[TD="align: right"]872[/TD]
[TD="align: right"]31.8%[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]4[/TD]
[TD="align: right"]3095[/TD]
[TD="align: right"]983[/TD]
[TD="align: right"]31.8%[/TD]
[/TR]
[TR]
[TD]80[/TD]
[TD] [/TD]
[TD="align: right"]890[/TD]
[TD="align: right"]277[/TD]
[TD="align: right"]31.1%[/TD]
[/TR]
[TR]
[TD]223[/TD]
[TD] [/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]30.8%[/TD]
[/TR]
[TR]
[TD]253[/TD]
[TD]5[/TD]
[TD="align: right"]2003[/TD]
[TD="align: right"]590[/TD]
[TD="align: right"]29.5%[/TD]
[/TR]
[TR]
[TD]120[/TD]
[TD] [/TD]
[TD="align: right"]842[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]29.1%[/TD]
[/TR]
[TR]
[TD]148[/TD]
[TD] [/TD]
[TD="align: right"]1475[/TD]
[TD="align: right"]418[/TD]
[TD="align: right"]28.3%[/TD]
[/TR]
[TR]
[TD]87[/TD]
[TD] [/TD]
[TD="align: right"]810[/TD]
[TD="align: right"]229[/TD]
[TD="align: right"]28.3%[/TD]
[/TR]
[TR]
[TD]129[/TD]
[TD] [/TD]
[TD="align: right"]1551[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]28.0%[/TD]
[/TR]
[TR]
[TD]156[/TD]
[TD]6[/TD]
[TD="align: right"]2205[/TD]
[TD="align: right"]607[/TD]
[TD="align: right"]27.5%[/TD]
[/TR]
[TR]
[TD]166[/TD]
[TD] [/TD]
[TD="align: right"]1896[/TD]
[TD="align: right"]508[/TD]
[TD="align: right"]26.8%[/TD]
[/TR]
[TR]
[TD]247[/TD]
[TD] [/TD]
[TD="align: right"]559[/TD]
[TD="align: right"]148[/TD]
[TD="align: right"]26.5%[/TD]
[/TR]
[TR]
[TD]114[/TD]
[TD] [/TD]
[TD="align: right"]435[/TD]
[TD="align: right"]115[/TD]
[TD="align: right"]26.4%[/TD]
[/TR]
[TR]
[TD]191[/TD]
[TD] [/TD]
[TD="align: right"]781[/TD]
[TD="align: right"]203[/TD]
[TD="align: right"]26.0%[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help
Asad
I am trying to rank the employees based on the percentage of return ticket sales. But only if they sold more than 2000 tickets. I am unable to work out the formula for this. Can someone her help me on this?
Here is the sample table and Rank is the desired answer.
[TABLE="width: 277"]
<colgroup><col><col><col span="3"></colgroup><tbody>[TR]
[TD]Staff ID[/TD]
[TD]Rank[/TD]
[TD]Tickets Sold[/TD]
[TD]Retrurn Tickets[/TD]
[TD]Percent[/TD]
[/TR]
[TR]
[TD]180[/TD]
[TD]1[/TD]
[TD="align: right"]2866[/TD]
[TD="align: right"]1155[/TD]
[TD="align: right"]40.3%[/TD]
[/TR]
[TR]
[TD]299[/TD]
[TD]2[/TD]
[TD="align: right"]3092[/TD]
[TD="align: right"]1188[/TD]
[TD="align: right"]38.4%[/TD]
[/TR]
[TR]
[TD]168[/TD]
[TD] [/TD]
[TD="align: right"]1370[/TD]
[TD="align: right"]493[/TD]
[TD="align: right"]36.0%[/TD]
[/TR]
[TR]
[TD]178[/TD]
[TD] [/TD]
[TD="align: right"]247[/TD]
[TD="align: right"]87[/TD]
[TD="align: right"]35.2%[/TD]
[/TR]
[TR]
[TD]300[/TD]
[TD] [/TD]
[TD="align: right"]1423[/TD]
[TD="align: right"]490[/TD]
[TD="align: right"]34.4%[/TD]
[/TR]
[TR]
[TD]229[/TD]
[TD] [/TD]
[TD="align: right"]318[/TD]
[TD="align: right"]109[/TD]
[TD="align: right"]34.3%[/TD]
[/TR]
[TR]
[TD]93[/TD]
[TD] [/TD]
[TD="align: right"]1258[/TD]
[TD="align: right"]411[/TD]
[TD="align: right"]32.7%[/TD]
[/TR]
[TR]
[TD]34[/TD]
[TD] [/TD]
[TD="align: right"]614[/TD]
[TD="align: right"]197[/TD]
[TD="align: right"]32.1%[/TD]
[/TR]
[TR]
[TD]160[/TD]
[TD]3[/TD]
[TD="align: right"]3169[/TD]
[TD="align: right"]1010[/TD]
[TD="align: right"]31.9%[/TD]
[/TR]
[TR]
[TD]190[/TD]
[TD]4[/TD]
[TD="align: right"]2743[/TD]
[TD="align: right"]872[/TD]
[TD="align: right"]31.8%[/TD]
[/TR]
[TR]
[TD]32[/TD]
[TD]4[/TD]
[TD="align: right"]3095[/TD]
[TD="align: right"]983[/TD]
[TD="align: right"]31.8%[/TD]
[/TR]
[TR]
[TD]80[/TD]
[TD] [/TD]
[TD="align: right"]890[/TD]
[TD="align: right"]277[/TD]
[TD="align: right"]31.1%[/TD]
[/TR]
[TR]
[TD]223[/TD]
[TD] [/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]30.8%[/TD]
[/TR]
[TR]
[TD]253[/TD]
[TD]5[/TD]
[TD="align: right"]2003[/TD]
[TD="align: right"]590[/TD]
[TD="align: right"]29.5%[/TD]
[/TR]
[TR]
[TD]120[/TD]
[TD] [/TD]
[TD="align: right"]842[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]29.1%[/TD]
[/TR]
[TR]
[TD]148[/TD]
[TD] [/TD]
[TD="align: right"]1475[/TD]
[TD="align: right"]418[/TD]
[TD="align: right"]28.3%[/TD]
[/TR]
[TR]
[TD]87[/TD]
[TD] [/TD]
[TD="align: right"]810[/TD]
[TD="align: right"]229[/TD]
[TD="align: right"]28.3%[/TD]
[/TR]
[TR]
[TD]129[/TD]
[TD] [/TD]
[TD="align: right"]1551[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]28.0%[/TD]
[/TR]
[TR]
[TD]156[/TD]
[TD]6[/TD]
[TD="align: right"]2205[/TD]
[TD="align: right"]607[/TD]
[TD="align: right"]27.5%[/TD]
[/TR]
[TR]
[TD]166[/TD]
[TD] [/TD]
[TD="align: right"]1896[/TD]
[TD="align: right"]508[/TD]
[TD="align: right"]26.8%[/TD]
[/TR]
[TR]
[TD]247[/TD]
[TD] [/TD]
[TD="align: right"]559[/TD]
[TD="align: right"]148[/TD]
[TD="align: right"]26.5%[/TD]
[/TR]
[TR]
[TD]114[/TD]
[TD] [/TD]
[TD="align: right"]435[/TD]
[TD="align: right"]115[/TD]
[TD="align: right"]26.4%[/TD]
[/TR]
[TR]
[TD]191[/TD]
[TD] [/TD]
[TD="align: right"]781[/TD]
[TD="align: right"]203[/TD]
[TD="align: right"]26.0%[/TD]
[/TR]
</tbody>[/TABLE]
Thanks for your help
Asad