Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JA
 
Posts: n/a
Default Ranking - Excel 2003

Is it possible to set the "rank" formula to overlook zeros?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tjtjjtjt
 
Posts: n/a
Default Ranking - Excel 2003

What do you mean by overlook zeroes?
An example might help.
Does this do what you want?
=IF(J1=0,"",RANK(J1,$J$1:$J$73,1)-1)
--
tj


"JA" wrote:

Is it possible to set the "rank" formula to overlook zeros?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tjtjjtjt
 
Posts: n/a
Default Ranking - Excel 2003

Did you ever find a solution?
This one ignores all zeroes in the test I performed.
=IF(COUNTIF($A$1:$A$40,0)0,RANK(A1,$A$1:$A$40,1)-COUNTIF(A1:A40,0),RANK(A1,$A$1:$A$40,1))
--
tj


"JA" wrote:

Is it possible to set the "rank" formula to overlook zeros?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tjtjjtjt
 
Posts: n/a
Default Ranking - Excel 2003

I missed a spot--didn't make the second countif contain absolute references.
=IF(COUNTIF($A$1:$A$40,0)0,RANK(A1,$A$1:$A$40,1)-COUNTIF($A$1:$A$40,0),RANK(A1,$A$1:$A$40,1))
--
tj


"tjtjjtjt" wrote:

Did you ever find a solution?
This one ignores all zeroes in the test I performed.
=IF(COUNTIF($A$1:$A$40,0)0,RANK(A1,$A$1:$A$40,1)-COUNTIF(A1:A40,0),RANK(A1,$A$1:$A$40,1))
--
tj


"JA" wrote:

Is it possible to set the "rank" formula to overlook zeros?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Ranking - Excel 2003

If A2:A8 consists of 0's, empty cells, and positive numbers:

B2, copied down:

=IF(A20,RANK(A2,$A$2:$A$8),"")

The following expensive formula should yield the same ranking as the
foregoing:

=IF(A20,SUMPRODUCT(--($A$2:$A$8A2),--ISNUMBER($A$2:$A$8))+1,"")


JA wrote:
Is it possible to set the "rank" formula to overlook zeros?



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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Very slow in opening Excel 97 file in Excel 2003 S M Setting up and Configuration of Excel 0 October 22nd 05 07:32 PM
Excel Re-calculation 2000 compared to 2003 tonymitchell Excel Discussion (Misc queries) 1 August 3rd 05 04:22 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2000 file when opened in Excel 2003 generates errors? Doug Excel Discussion (Misc queries) 13 December 25th 04 10:20 PM


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