Average out percentage ignoring a specific negative number

ToxikRick

New Member
Joined
Nov 21, 2018
Messages
5
Hello,

I have been getting help from your forum for quite a while, but I've always found the answer. This is the first time I needed to ask one.

I have a spread sheet where I am trying to show the average percentage over a few cells. I'm trying to make R10 average out R5:R9, but to ignore -80% (-79% or more could be a valid number).

The -80% is in there because R5:R9 are pulling other info I want and -80% is the default info. I need R10 to show a running total, which it will not do if it's including the default -80% in it's formula.

I hope that made sense. Help is appreciated!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
try

=AVERAGEIF(R5:R9,"<>-80%",R5:R9)

or

=AVERAGE(IF(R5:R9<>-80%,R5:R9))
confirm with shift-control-enter together
 
Last edited:
Upvote 0
try

=AVERAGEIF(R5:R9,"<>-80%",R5:R9)

or

=AVERAGE(IF(R5:R9<>-80%,R5:R9))
confirm with shift-control-enter together


The second one worked amazing! Thank you.

Can I add a follow up of:

How can I make the same cells ignore -30% or lower (-31%, -32%, etc.). I have a similar set of cells that I just noticed need to do this.
 
Upvote 0
try this, again confirm with shift-control-enter

=AVERAGE(IF(R5:R9<>-80%,IF(R5:R9>-30%,R5:R9)))
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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