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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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