3 function formula

NAGreen

New Member
Joined
Apr 4, 2019
Messages
3
Hello -

This is the formula that Ive got:

=(COUNTIF(E21:E23,"Y")/COUNTA(E21:E23)/IFERROR(E24,""))

It works great on providing me a percentage until I add in the if error, then the % automatically go to 0. What am I doing wrong?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Is E24 where you have the formula? If so try:

=IFERROR(COUNTIF(E21:E23,"Y")/COUNTA(E21:E23),"")
 
Upvote 0
It also comes up with the #Div/0. I would like the cell to show the average of the numbers even if not all of the cells are filled in yet. Does that make sense?
 
Upvote 0
If you have Excel 2010 or later try:

=H26+AGGREGATE(1,6,B39:H39)
 
Upvote 0
Put this formula in the cell where you want the average. You will avoid an error and it there are no values in your list the average will show as a null string.
=IF(COUNTA(E21:E23)=0,"",AVERAGE(E21:E23))
 
Upvote 0
If all the cells are blank then:

IFERROR(H26+(AVERAGE(B39:H39),"")

If there is an error in one or more of the cells then the formula in post#6
Excel Workbook
ABCDEFGH
267.24
38
3925#DIV/0!225
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
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