Average help

SFCChase

Board Regular
Joined
Jun 25, 2013
Messages
107
Office Version
  1. 2016
Platform
  1. Windows
Is there a way to Average a series of data with a #N/A included in the string?

I have a column of 45 data numbers, 3 or 4 of which have #N/A errors due to information not being available. Is there a way to write a formula that will average the remaining 41 OR 42 items without me having to change the range every time I use equation?

NAMESCORETOTAL AVERAGE
BOB90AVERAGE ALL NUMERICAL CELLS B2:B9
JOE100SHOULD EQUAL 95
MIKE#N/A
SUE100
BILL95
JEN85
LOU#N/A
BETH100

Any help would be appreciated!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
One way:
Excel Formula:
=SUMIF(B2:B46,">0",B2:B46)/COUNTIF(B2:B9,">0")
assuming all your number are greater than 0.
 
Upvote 0
One way:
Excel Formula:
=SUMIF(B2:B46,">0",B2:B46)/COUNTIF(B2:B9,">0")
assuming all your number are greater than 0.
Thanks! Worked great! I knew I was overthinking it getting set on having to use an AVERAGE function.
 
Upvote 0
Thanks! Worked great! I knew I was overthinking it getting set on having to use an AVERAGE function.
You are welcome.

You can use AVERAGEIF, like logit shows (I keep forgetting about that function!).

If I had used that, I could have simplified the logic I used to:
Excel Formula:
=AVERAGEIF(B2:B46,">0")
 
Upvote 0

Forum statistics

Threads
1,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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