#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Rank formula

I need a formula that will rank a given value against a set of other values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat that
returns the number 5, as this would be the rank of this number if it were in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of reasons.

Thanks!

Daniel
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Rank formula

try:

=MATCH(D1,B1:B10,-1)+1

Assumes D1 <100

"Daniel Bonallack" wrote:

I need a formula that will rank a given value against a set of other values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat that
returns the number 5, as this would be the rank of this number if it were in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of reasons.

Thanks!

Daniel

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Rank formula

Maybe this...

Assuming your lookup array goes from 100 to 0 and the number to rank will
not be greater than 100.

=MATCH(D1,A1:A11,-1)+(COUNTIF(A1:A11,D1)=0)

--
Biff
Microsoft Excel MVP


"Daniel Bonallack" wrote in
message ...
I need a formula that will rank a given value against a set of other
values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat
that
returns the number 5, as this would be the rank of this number if it were
in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of
reasons.

Thanks!

Daniel



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Rank formula

With the B numbers in B1:B5, I used =MATCH(ROUND(D1,-1),$B$1:$B$5,-1)
This gives 5 when D1=63 and 4 when D1=68
Any modification needed?
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Daniel Bonallack" wrote in
message ...
I need a formula that will rank a given value against a set of other
values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat
that
returns the number 5, as this would be the rank of this number if it were
in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of
reasons.

Thanks!

Daniel



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 110
Default Rank formula

Thanks to all for the answers - these work fine.

"Toppers" wrote:

try:

=MATCH(D1,B1:B10,-1)+1

Assumes D1 <100

"Daniel Bonallack" wrote:

I need a formula that will rank a given value against a set of other values.

For example, in column B, the numbers are 100, 90, 80, 70, 60 etc - i.e.
sorted in descending order.

I enter the number 63 in cell D1. In cell E1 I want a ranking formulat that
returns the number 5, as this would be the rank of this number if it were in
the array in column B.

Can you help? I do know that if I sort column B ascending, then I could
just use a vlookup formula, but this is not possible for a number of reasons.

Thanks!

Daniel

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
# rank formula cyndi Excel Discussion (Misc queries) 9 April 5th 07 09:28 PM
RANK, duplicate ranking but no gaps in rank arron laing Excel Worksheet Functions 4 June 14th 06 07:57 AM
RANK formula KG Excel Discussion (Misc queries) 3 September 23rd 05 03:27 PM
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
Rank Formula lightninbug Excel Worksheet Functions 3 January 21st 05 10:59 PM


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