if or problem

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

Guest

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419
 
Assuming first column is data and second expected result:

for data of #NUM! will fail (error) on the "A1=0" (non-numeric) test while
for A1=0, your test returns zero (not div/0). Your test will only work for A1
being a non-zero valid number. (I assume b0 is a typo).

Why should they be 9.419?
 
In your formula you are telling it not to do the calculation if it is a 0 or
and error. The question is what is b0? Did you mean for that to be a cell,
perhaps B1?
 
its b0 because the i knew that data wouldn't fail and put it at the top, the
data after that would then see if it was either a fail or a 0 in the a
column, and if it was return the value above it or do the calculation.
 
b0 was put in simply to say, if the a column is not 0 or an error then place
the value above the current cell in the cell containing the formula.
 
The formula works fine for

=if(iserror(a1),b0,1/a1-1/2.5)

but then i have 0 in my a column and it screws up the false part cause 1/0
gives div/0

i want to say iserror or a1=0 but i get problems:\
 
i figured it out, the #num was screwing up for the test if a2=0, i had to do
=if(iserror(a1),b0,if(a1=0,b0,1/a1-1/2.5))
 

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

Similar Threads

More Than VLOOKUP() 11
If error #NUM! or less than 1 6
any ideas appreciated 9
Excel Need Countifs Formula Help 0
formula to count easily 9
Lookup references 3
div/0 and #num! 5
sum numbers in cell string array 6

Back
Top