Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hal hal is offline
external usenet poster
 
Posts: 6
Default function or code?

What would be the best way to look at the value in 6 cells and in
another cell next to it put what its rank is? For example, say you
have the following values in 6 different cells 10, 20, 5, 50, 40, 30
and in another cell next to it you want it to put its rank. For
example, for 10 you'd display the number 5, 20 would be 4, 5 would be
6, and so on. Any links, ideas, or answer would be great.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default function or code?

use the rank function

syntax =Rank(value,range)



On Sep 25, 2:41*pm, hal wrote:
What would be the best way to look at the value in 6 cells and in
another cell next to it put what its rank is? *For example, say you
have the following values in 6 different cells *10, 20, 5, 50, 40, 30
and in another cell next to it you want it to put its rank. *For
example, for 10 you'd display the number 5, 20 would be 4, 5 would be
6, and so on. *Any links, ideas, or answer would be great.

thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default function or code?


Assuming your list of numbers are in A1 to A6, then put this formula
in B1 and copy down the formula for each number (B1 to B6)

=RANK(A1,$A$1:$A$6,0)

Regards,
Muppet Man

On Sep 25, 7:41*pm, hal wrote:
What would be the best way to look at the value in 6 cells and in
another cell next to it put what its rank is? *For example, say you
have the following values in 6 different cells *10, 20, 5, 50, 40, 30
and in another cell next to it you want it to put its rank. *For
example, for 10 you'd display the number 5, 20 would be 4, 5 would be
6, and so on. *Any links, ideas, or answer would be great.

thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hal hal is offline
external usenet poster
 
Posts: 6
Default function or code?

wish i found that earlier.

thanks
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
'Code breaking' function s4 Excel Discussion (Misc queries) 2 March 15th 08 01:00 PM
FUNCTION OR CODE ? tomjoe Excel Worksheet Functions 5 February 18th 08 05:39 PM
how can i call sub or function in vba code xxx Excel Discussion (Misc queries) 3 June 28th 06 11:47 AM
how to use a VLOOKUP function in a VBA code? Sunil New Users to Excel 3 June 13th 05 09:27 AM
Function or Code Allan Excel Worksheet Functions 2 March 16th 05 06:55 PM


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