#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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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