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?
 

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,719
Office Version
  1. 365
Platform
  1. Windows
Is E24 where you have the formula? If so try:

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

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,882
Office Version
  1. 365
Platform
  1. Windows
How about this one?

=H26+(AVERAGE(B39:H39))
What's the question regarding this one?
 

NAGreen

New Member
Joined
Apr 4, 2019
Messages
3

ADVERTISEMENT

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?
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,719
Office Version
  1. 365
Platform
  1. Windows
If you have Excel 2010 or later try:

=H26+AGGREGATE(1,6,B39:H39)
 

glfiedler

Board Regular
Joined
Apr 1, 2019
Messages
67
Office Version
  1. 365
Platform
  1. Windows
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))
 

AhoyNC

Well-known Member
Joined
Oct 10, 2011
Messages
4,719
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,232
Messages
5,594,962
Members
413,954
Latest member
mrsandy

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
Top