Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Zero Value Ranked

I need to rank the "% of inc" column but I get an error message (#N/A) on the
ones that have 0%. This is the formula I'm using:
=IF(H6=0,"",RANK(H6,$H$5:$H$15)). I've also tried
=IF(G21=0,"0%",(C21-G21)/G21). What would you suggest?

% of inc Rank
-100% 6
0% #N/A
300% 1
-33% 3
-100% 6
0% #N/A
-100% 6
0% #N/A
-50% 5
50% 2
-33% 3

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default Zero Value Ranked


Bsmile wrote:
I need to rank the "% of inc" column but I get an error message (#N/A) on the
ones that have 0%. This is the formula I'm using:
=IF(H6=0,"",RANK(H6,$H$5:$H$15)). I've also tried
=IF(G21=0,"0%",(C21-G21)/G21). What would you suggest?


try nesting another If statement to place a 0 instead of a #NA.

=IF(ISERROR((C21-G21)/G21),0,(C21-G21)/G21)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default Zero Value Ranked


Disregard the last one, this is what I meant to send:

try this:

=IF(G21=0,"0"%,IF(ISERROR((C21-G21)/G21),0,(C21-G21)/G21))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Zero Value Ranked

Thank you. That worked!

"Mark" wrote:


Disregard the last one, this is what I meant to send:

try this:

=IF(G21=0,"0"%,IF(ISERROR((C21-G21)/G21),0,(C21-G21)/G21))


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
Display ranked data in order from a range S Davis Excel Worksheet Functions 1 July 7th 06 09:43 PM
summing previously ranked values ellebelle Excel Worksheet Functions 4 February 3rd 06 04:26 PM
summing previously ranked values ellebelle Excel Worksheet Functions 0 February 3rd 06 11:41 AM
Ranked list gmunro Excel Worksheet Functions 9 September 16th 05 04:38 PM
Automatic updates of a ranked table Spobber Excel Discussion (Misc queries) 0 February 16th 05 02:14 AM


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