#DIV/0! Error when calculating averages over time

jcarrara

New Member
Joined
Oct 18, 2018
Messages
3
cVW7D0
I am using the below average if formula to determine average employee performance rating.

I am trying to get rid of the #DIV/0! from cells where data has yet to be populated, as I want to set this up to be used in the following years and indicate an overall average.

=AVERAGEIF(B4:E4,"<>0")

I have been looking online the past hour and am having trouble incorporating a solution in to my existing formula.
cVW7D0
I'm not sure if I am totally off base with my current formula.
I'm not well versed in Excel so everything it still baffling to me as far as complex formulas go.

https://ibb.co/cVW7D0

 
Last edited by a moderator:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the Board!

Here is one way:
Code:
=IF(COUNT(B4:E4)>0,AVERAGEIF(B4:E4,"<>0"),"")
 
Upvote 0
What exactly is in cells B4:E4?
It doesn't sound like they are really empty.

What does:
=COUNT(B4:E4)
return?

That counts how many of those cells have numeric entries.
 
Last edited:
Upvote 0
Ah, you are correct! There were 0's as values so have no data at all made the formula work. Thanks so much for your assistance !
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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