Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default RANKING alters when data is filtered

Have spread sheet with list of percentages - adjacant column displays numeric
ranking of these percentages - when i filter the percentage column (eg sort
ascending) the formulas (cells that are being ranked) and hence the numeric
ranking are changing - each row is ranking different cells within the same
column.
eg.
A B C
1 Rank
2 ABL 4% 4 (rank by cells C2-C6)
3 ING 5% 5 (rank by cells C2-C6)
4 CBA 1% 1 (rank by cells C2-C6)
5 AMP 3% 3 (rank by cells C2-C6)
6 ANZ 2% 2 (rank by cells C2-C6)

after sort ascending






  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 833
Default RANKING alters when data is filtered

I have tried to replicate what you are seeing in EXCEL 2007 and have put up a
file for you at:-

http://www.pierrefondes.com/

It is item number 46 towards the top of my home page (called RANK & Filter).

In the above Workbook if I click on the filter button in cell F7 and select
Sort Smallest to Largest result is:-

CBA 1.00% 1
ANZ 2.00% 2
AMP 3.00% 3
ABL 4.00% 4
ING 5.00% 5

This appears to be correct.

If my comments have helped please hit Yes.

Thanks.



"Mantis" wrote:

Have spread sheet with list of percentages - adjacant column displays numeric
ranking of these percentages - when i filter the percentage column (eg sort
ascending) the formulas (cells that are being ranked) and hence the numeric
ranking are changing - each row is ranking different cells within the same
column.
eg.
A B C
1 Rank
2 ABL 4% 4 (rank by cells C2-C6)
3 ING 5% 5 (rank by cells C2-C6)
4 CBA 1% 1 (rank by cells C2-C6)
5 AMP 3% 3 (rank by cells C2-C6)
6 ANZ 2% 2 (rank by cells C2-C6)

after sort ascending






  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default RANKING alters when data is filtered

In cell C2: =RANK(B2,$B$2:$B$6) copy down and Sort
Micky


"Mantis" wrote:

Have spread sheet with list of percentages - adjacant column displays numeric
ranking of these percentages - when i filter the percentage column (eg sort
ascending) the formulas (cells that are being ranked) and hence the numeric
ranking are changing - each row is ranking different cells within the same
column.
eg.
A B C
1 Rank
2 ABL 4% 4 (rank by cells C2-C6)
3 ING 5% 5 (rank by cells C2-C6)
4 CBA 1% 1 (rank by cells C2-C6)
5 AMP 3% 3 (rank by cells C2-C6)
6 ANZ 2% 2 (rank by cells C2-C6)

after sort ascending






  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default RANKING alters when data is filtered

I'm a bit confused as to why you're trying to sort by column C which I
presume contains a formula such as =RANK(B2,B$2:B$6) in cell C2. I would
think you'd be sorting either by column B (to get them in order by % value)
or by A to get them into alphabetical order. In either of those cases, the
values in column C will adjust automatically.

"Mantis" wrote:

Have spread sheet with list of percentages - adjacant column displays numeric
ranking of these percentages - when i filter the percentage column (eg sort
ascending) the formulas (cells that are being ranked) and hence the numeric
ranking are changing - each row is ranking different cells within the same
column.
eg.
A B C
1 Rank
2 ABL 4% 4 (rank by cells C2-C6)
3 ING 5% 5 (rank by cells C2-C6)
4 CBA 1% 1 (rank by cells C2-C6)
5 AMP 3% 3 (rank by cells C2-C6)
6 ANZ 2% 2 (rank by cells C2-C6)

after sort ascending






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default RANKING alters when data is filtered

Make sure that your formula uses a simple cell reference, and not a same
sheet reference.
Good:
=RANK(C2,C$2:C$6)
Bad:
=Rank(Sheet1!C2,C$2:C$6)

Even though the two refernces behave (and look) almost exactly alike, they
sort differently. See link for further detail:
http://spreadsheetpage.com/index.php...ng_oddity_bug/
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Mantis" wrote:

Have spread sheet with list of percentages - adjacant column displays numeric
ranking of these percentages - when i filter the percentage column (eg sort
ascending) the formulas (cells that are being ranked) and hence the numeric
ranking are changing - each row is ranking different cells within the same
column.
eg.
A B C
1 Rank
2 ABL 4% 4 (rank by cells C2-C6)
3 ING 5% 5 (rank by cells C2-C6)
4 CBA 1% 1 (rank by cells C2-C6)
5 AMP 3% 3 (rank by cells C2-C6)
6 ANZ 2% 2 (rank by cells C2-C6)

after sort ascending








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
Return filtered values into report worksheet based on filtered valueon the data worksheet dicko1 Excel Worksheet Functions 1 April 21st 09 12:27 AM
Ranking data LiAD Excel Worksheet Functions 3 January 7th 09 04:45 PM
data ranking yves Excel Worksheet Functions 2 February 1st 07 08:13 PM
Ranking Data NickyV Excel Discussion (Misc queries) 2 April 20th 06 09:19 PM
Ranking Data LJDL Excel Worksheet Functions 2 September 19th 05 05:27 PM


All times are GMT +1. The time now is 10:27 AM.

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"