Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Ranking by percentage

How can you rank by percentage alone? I have a table of players stats that
are rated using percentages and i would like to have the table automatically
rank them desceding as the sheet is updated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default Ranking by percentage

Hi,

One way is to use the Sort command under the Data menu.

Challa Prabhu

"Blade370" wrote:

How can you rank by percentage alone? I have a table of players stats that
are rated using percentages and i would like to have the table automatically
rank them desceding as the sheet is updated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Ranking by percentage

Here is a very simple example. The player's names are in column A and the
percentages are in column B. Enter this macro in Worksheet code:


Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("B:B"), Target) Is Nothing Then
Exit Sub
End If
Application.EnableEvents = False
Set r = Range("A:B")
r.Sort Key1:=Range("B1"), Order1:=xlDescending
Application.EnableEvents = True
End Sub

Anytime you change a percentage in column B, the list will re-sort itself in
descending order. It's automatic and requires no formulas at all.


REMEMBER: Worksheet code.

--
Gary''s Student - gsnu200721
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ranking Teethless mama Excel Worksheet Functions 0 March 28th 07 12:23 AM
Calculating a percentage with the end percentage in mind Shadowshady Excel Discussion (Misc queries) 2 June 17th 06 09:41 AM
Ranking Curtis Excel Worksheet Functions 5 May 14th 06 03:59 AM
Bar Chart depicting the "percentage of another percentage(less than 100)" TEAM Charts and Charting in Excel 1 October 28th 05 05:06 AM
Ranking jtothet21 Excel Discussion (Misc queries) 1 May 21st 05 03:35 AM


All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"