How do I ignore cells in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a formula written in a column ten rows deep. Sometimes I use less
than 10 inputs. I'm trying to formulate an average of this column, but if I
don't input all 10 inputs, my average comes back with #DIV/0!

How can I get this column to average when some of the rows aren't being used?
 
Assuming data in A1:A10 In cell A11 use =average(A1:A10) The same applies if
data is in A1:A5 in cell A11 use the same formula. It will not consider blank
cells
HTH
 
I tried that. The problem might be that all of the 10 cells contain formulas
from different cells. When the inputs for those formulas are left out, it
gives the same #DIV/0! response.

While those responses don't mean anything, it is imperative that the cell
avg. is.
 
Look at a combination of =if(iserror(
NOt clear without fooling with it how that will work but you can use the
iserror to filter out the #div/0
 
So try something like =IF(iserror #div/0!)AVERAGE(A1:A10)? That didn't work.
I'm not familiar with iserror inputs.
 
Missed a paren:

=IF(COUNT(A1:A10),AVERAGE(A1:A10),"No inputs")
 
Try, array-entered (press CTRL+SHIFT+ENTER)
something like:

=AVERAGE(IF(ISNUMBER(A1:A10),A1:A10))
 
=(E24/O24)^(1/A24)-1. << This is the formula in each of the 10 cells. They
are in a % format. And, unfortunately, I'm back with a #DIV/0! response.
 
That stopped the error message, but it didn't compute the answer. It came
back with 0%.
 
Ah, misunderstood where the #DIV/0 was coming from.

In general, it's better to trap the error closest to its source, so I
would modify the formulae in A1:A10 to

=IF(COUNT(A24,O24)=2,(E24/O24)^(1/A24)-1,"No Input")

Then average with the formula I gave.
 
Perhaps try formatting the result to more decimal places and/or use
scientific. It could be the correct result is already returned.
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
texanfanrocket said:
That stopped the error message, but it didn't compute the answer. It came
back with 0%.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top