Ignore #N/A when ranking

Celticshadow

Active Member
Joined
Aug 16, 2010
Messages
414
Office Version
  1. 365
Platform
  1. Windows
Hi All

I have the below figures in column N. I am using the below formula to rank the figures in column N but it is returning #N/A in each corresponding cell in column M,thus how do I get the formula to ignore the error #N/A and rank the other figures.


=SUMPRODUCT((N4> N$4:N$15)/COUNTIF(N$4:N$15,N$4:N$15))+1

18.50
0.83
14.50
68.00
57.00
46.00
66.00
92.00
39.00
#N/A
14.00
#N/A


Thanks in advance.

Kind Regards
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try switching to an array formula....

=IF(ISNUMBER(N4),SUM(IF(ISNUMBER(N$4:N$15),(N4>N$4:N$15)/COUNTIF(N$4:N$15,N$4:N$15)))+1,"")

confirmed with CTRL+SHIFT+ENTER
 
Upvote 0
Try switching to an array formula....

=IF(ISNUMBER(N4),SUM(IF(ISNUMBER(N$4:N$15),(N4>N$4:N$15)/COUNTIF(N$4:N$15,N$4:N$15)))+1,"")

confirmed with CTRL+SHIFT+ENTER


Hi Barry Houdini

Many thanks that works perfectly. Another super fast solution done with the minimum of fuss, quality pure quality.

Kind Regards
 
Upvote 0
Hi

Another option, non-array, try:

=IF(ISNUMBER(N4),SUMPRODUCT(COUNTIF(N4,">"&N$4:N$15)/COUNTIF(N$4:N$15,N$4:N$15))+1,"")
 
Upvote 0
.....now I was thinking....COUNTIF will ignore errors......but I didn't take that extra step, nice one pgc :)
 
Upvote 0
works OK for me.....

The formula in question ranks "without gaps" and requires the whole range to be populated. Why do you think it doesn't work, in what way?
 
Upvote 0

Forum statistics

Threads
1,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top