Average formula combined with IF formula

cpisthedbb

New Member
Joined
Apr 10, 2018
Messages
30
Hi,

What formula would I use for the following. I have 4 or 5 percentages which I need to average. If any of these 4 or 5 values are 0% then the average would need to be zero.

For example if I have 100% 0% 75% 100% - I need the average top show as 0% and not 68.75%

Can anyone please help, I can't find the answer anywhere.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
If you four values are in cells A1:D1, try this formula:
Code:
=IF(COUNTIF(A1:D1,0)>0,0,AVERAGE(A1:D1))
 
Upvote 0
How about
=IF(COUNTIF(I4:I7,0%)>0,0,AVERAGE(I4:I7))
 
Upvote 0
How about
=IF(COUNTIF(I4:I7,0%)>0,0,AVERAGE(I4:I7))

Thank for the reply. For some reason when I put this in I get the 'there's a problem with this formula'. The values are in a dropdown box, would this make a difference?
 
Upvote 0
Thank for the reply. For some reason when I put this in I get the 'there's a problem with this formula'. The values are in a dropdown box, would this make a difference?


Just tried it with the dropdown boxes removed and get the same error.
 
Upvote 0
You may need to replace the commas with whatever your regional separator is.
 
Upvote 0

Forum statistics

Threads
1,213,544
Messages
6,114,249
Members
448,556
Latest member
peterhess2002

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