Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Rank the Data

Is there any way to rank the data using a macro, or is there an easier
way?

Basically I have a list of data sorted by state. I want to rank the
data from high to low(1st, 2nd, or 1,2, etc.), but not sort the data (I
want it to stay where it is with the rank to the right of the data).

How can I do this?

Thanks,

Dave

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Rank the Data

It is easier than you might suppose: there is a RANK() function that will do
it for you:
=RANK($A1,$A1:$A50) will show A1's rank out of the list in A1-A50. NOTE:
ties are possible, so RANK will give them equal ranks and then skip the next
one - e.g. if there is a tie for 3rd rank, the rank numbers would go 1, 2, 3,
3, 5, 6 ....
--
- K Dales


"dm16s" wrote:

Is there any way to rank the data using a macro, or is there an easier
way?

Basically I have a list of data sorted by state. I want to rank the
data from high to low(1st, 2nd, or 1,2, etc.), but not sort the data (I
want it to stay where it is with the rank to the right of the data).

How can I do this?

Thanks,

Dave


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
Finding the next same rank in data steven.holloway Excel Discussion (Misc queries) 4 September 11th 09 04:47 PM
transforming rank data David Schwartz Excel Discussion (Misc queries) 3 January 31st 09 06:33 PM
rank the numbers / range of data using 'RANK' and 'ABS' KP Excel Worksheet Functions 1 March 8th 08 05:50 PM
RANK, duplicate ranking but no gaps in rank arron laing Excel Worksheet Functions 4 June 14th 06 07:57 AM
Rank items, select one start date, have remaining dates follow based on rank rob normerica Excel Discussion (Misc queries) 1 August 15th 05 09:36 PM


All times are GMT +1. The time now is 12:29 AM.

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"