Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 10
Default Need help on macro to do ranking

Dear all,

I want to do ranking by comparing value in each rows in columnB(Score). The ranking will appear in columnC(Rank).But i don't know how to develop a macro to do this. Sample data is as follows. Thanks in advance for any help.

Original data:
Name Score Rank
ComA 15
ComB 44
ComC 5
ComD 21
ComE 10

Expected output:
Name Score Rank
ComA 15 3
ComB 44 5
ComC 5 1
ComD 21 4
ComE 10 2
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Need help on macro to do ranking

Hi,

Am Fri, 23 Nov 2012 12:00:11 +0000 schrieb ixara:

Original data:
Name Score Rank
ComA 15
ComB 44
ComC 5
ComD 21
ComE 10

Expected output:
Name Score Rank
ComA 15 3
ComB 44 5
ComC 5 1
ComD 21 4
ComE 10 2



in C2 try:
=RANK(B2,$B$2:$B$6,1)
and copy down


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 10
Default

Thanks so much. It works.
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
macro for top10 & worst10 ranking Mayte Excel Programming 2 January 11th 09 11:37 PM
macro for top10 and wors10 in ranking Mayte Excel Programming 0 January 8th 09 10:37 PM
Ranking??? Cinny New Users to Excel 2 September 2nd 08 03:21 AM
Ranking Teethless mama Excel Worksheet Functions 0 March 28th 07 12:23 AM
ranking over a sum dreamz Excel Worksheet Functions 3 April 24th 06 06:40 PM


All times are GMT +1. The time now is 11:50 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"