I am trying to rank a set of data in EXCEL -- the ranking element is actually a frequency of errors to volume. Zero errors results in the volume becoming the frequency. Trying to rank the frequency column while pushing the zero error ones to the top of the ranking. I was do some IF formulas that would take the volume and multiply by a high number if there were zero errors and taking the original frequency of there weren't and ranking off of that but hoping there was something cleaner that I was mssing....

It looks like you do volume divided by error. So if error is 0 excel would do a divide by 0 error. So you could wrap it in iserror() and an if to do what you need. Can't think of anything cleaner at the moment. Something like:
If(iserror(volume/error),bignumberhere, (volume/error))

If its only about the division, then you can solve it with a very simple way
add a column to the data, for example Column C
and set the value of first cell as
=IF(B1=0,1,B1)
If its 0 then the value of C1 will be 1
if not then it will have the same value as B1

then on Column D
=TRUNC(A1/C1)
then hide column C
and here you have it

if you are talking about the rank, then its time to use MACROS, I can write a one for you if you asked

I thought that Sumproduct would get involved, not familiar with that at all, but after some adjusting to my range works great -- thanks for the help....

0

Featured Post

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

If(iserror(volume/error),b