#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default RANK Function

I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and some
are negative.

How do I use RANK such that No 1 is the value (positive or negative) that is
nearest to zero, No 2 is next nearest, etc?

Many thanks.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default RANK Function

You could use a helper column and put this formula in it:

=ABS(A1)

and copy this down - assume it is in column B. Then you could apply
the rank formula like this:

=RANK(B1,B$1:B$10,1)

and copy this down.

Hope this helps.

Pete

On Oct 16, 4:50*pm, "Terry Bennett" wrote:
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. *Some of the values are positive and some
are negative.

How do I use RANK such that No 1 is the value (positive or negative) that is
nearest to zero, No 2 is next nearest, etc?

Many thanks.


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

Try this...

Data in the range A1:A10

Enter this formula in B1 and copy down to B10:

=SUMPRODUCT(--(ABS(A1)=ABS(A$1:A$10)))

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and some
are negative.

How do I use RANK such that No 1 is the value (positive or negative) that
is nearest to zero, No 2 is next nearest, etc?

Many thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default RANK Function

Correction...

If you want to exactly emulate the RANK function:

=SUMPRODUCT(--(ABS(A1)ABS(A$1:A$10)))+1

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this...

Data in the range A1:A10

Enter this formula in B1 and copy down to B10:

=SUMPRODUCT(--(ABS(A1)=ABS(A$1:A$10)))

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and
some are negative.

How do I use RANK such that No 1 is the value (positive or negative) that
is nearest to zero, No 2 is next nearest, etc?

Many thanks.





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default RANK Function

Many thanks Pete/Biff - that's what I needed!


"T. Valko" wrote in message
...
Correction...

If you want to exactly emulate the RANK function:

=SUMPRODUCT(--(ABS(A1)ABS(A$1:A$10)))+1

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this...

Data in the range A1:A10

Enter this formula in B1 and copy down to B10:

=SUMPRODUCT(--(ABS(A1)=ABS(A$1:A$10)))

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and
some are negative.

How do I use RANK such that No 1 is the value (positive or negative)
that is nearest to zero, No 2 is next nearest, etc?

Many thanks.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default RANK Function

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
Many thanks Pete/Biff - that's what I needed!


"T. Valko" wrote in message
...
Correction...

If you want to exactly emulate the RANK function:

=SUMPRODUCT(--(ABS(A1)ABS(A$1:A$10)))+1

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this...

Data in the range A1:A10

Enter this formula in B1 and copy down to B10:

=SUMPRODUCT(--(ABS(A1)=ABS(A$1:A$10)))

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and
some are negative.

How do I use RANK such that No 1 is the value (positive or negative)
that is nearest to zero, No 2 is next nearest, etc?

Many thanks.









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default RANK Function

I have the very same issue. However, I have sub total between every 4 or 5
rows. so I would need the fomular to jump the total I may have 5 of them. If
or is that possible?
+2
+4
+3
total
+8
+6
+9
total

Please help...




"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
Many thanks Pete/Biff - that's what I needed!


"T. Valko" wrote in message
...
Correction...

If you want to exactly emulate the RANK function:

=SUMPRODUCT(--(ABS(A1)ABS(A$1:A$10)))+1

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this...

Data in the range A1:A10

Enter this formula in B1 and copy down to B10:

=SUMPRODUCT(--(ABS(A1)=ABS(A$1:A$10)))

--
Biff
Microsoft Excel MVP


"Terry Bennett" wrote in message
...
I'm sure there is an easy way of doing this ...

I have a list of data values that I want to rank in terms of the
nearest/furthest away from zero. Some of the values are positive and
some are negative.

How do I use RANK such that No 1 is the value (positive or negative)
that is nearest to zero, No 2 is next nearest, etc?

Many 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
Need help with RANK function Art Dameron Excel Worksheet Functions 3 March 7th 08 02:21 PM
using RANK function Sanford Lefkowitz Excel Discussion (Misc queries) 1 January 2nd 08 10:18 PM
Rank function yshridhar Excel Worksheet Functions 9 August 27th 07 09:10 AM
Rank Function Andrew C Excel Worksheet Functions 1 August 15th 06 07:09 AM
Rank Function Jeff Excel Discussion (Misc queries) 1 November 8th 05 08:26 PM


All times are GMT +1. The time now is 03:04 PM.

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

About Us

"It's about Microsoft Excel"