S
Sande Leonardo
how do I tell a formula to divide two cells, leave a "0" if that, and leave
the number is there is a number?
the number is there is a number?
David Biddulph said:bj gave you a formula most recently for dealing with A2/A1.
If you are getting problems with A1/B1 did you replace bj's A1 references
with B1, and did you replace his A2 references with A1?
[Or otherwise, use bj's original formula which was written for A1/B1.]
Why not copy the formula you are using and paste it here?
You couldn't have got a #DIV/0 if you had used either of bj's formulae
appropriately.
--
David Biddulph
Sande Leonardo said:Sorry that did not work.
What I have is =sum(A1/B1) and the answer I get is a number or if the
number is zero I get in cell A# is #DIV/0!
I am trying to not get the #DIV/0! I want a plain 0 in A3
So I need the A1/B1 with something to make it say 0 is the answer is 0.
thanks for all you help
Sande Leonardo said:I copied BJ's formula and changed the A's and B's where I thought it would
be
appropriate. Nothing I did to his formula gave me a normal answer.
The #DIV/0! is from my simple formula.
I thought it would be helpful if I showed what I was getting.
Below is BJ's formula and the first column is A1, the second column is B1
the third column is C1 - where the formula is.
I need C1 to show either the divided answer or a 0
75 1 =if(and(isnumber(A1),isnumber(A2),if(A1<>0,A2/A1,0),0)
75 1 75
David Biddulph said:bj gave you a formula most recently for dealing with A2/A1.
If you are getting problems with A1/B1 did you replace bj's A1 references
with B1, and did you replace his A2 references with A1?
[Or otherwise, use bj's original formula which was written for A1/B1.]
Why not copy the formula you are using and paste it here?
You couldn't have got a #DIV/0 if you had used either of bj's formulae
appropriately.
--
David Biddulph
message
Sorry that did not work.
What I have is =sum(A1/B1) and the answer I get is a number or if the
number is zero I get in cell A# is #DIV/0!
I am trying to not get the #DIV/0! I want a plain 0 in A3
So I need the A1/B1 with something to make it say 0 is the answer is 0.
thanks for all you help:
=if(and(isnumber(A1),isnumber(A2),if(A1<>0,A2/A1,0),0)
this checks if both are numbers and that the demonimator is not zero
befor
dividing and if not will give a zero.:
I have a number in cell A1, and in A2.
I need to divide A2 by A1 into A3 (that I can do)
I need A3 to be the answer in the form of a number or have it show a
"0"
something like - If A3<1, "0", otherwise put the answer there.
:
I am not sure what you want but maybe something like
numerator in Cell A1
Denominator in Cell B1
=if(or(B1=0,b1=""),0,A1/B1)
the simple response to your question might also be
=A1/B1
:
how do I tell a formula to divide two cells, leave a "0" if
that,
and leave
the number is there is a number?
David Biddulph said:You'll have spotted (or Excel will have spotted for you) that bj's formula
had a missing parenthesis, so correct that to
=IF(AND(ISNUMBER(A1),ISNUMBER(A2)),IF(A1<>0,A2/A1,0),0)
Now change A1 to B1, change A2 to A1.
Try it.
If you still get a divide by zero, copy the exact formula you are using and
paste it here.
--
David Biddulph
Sande Leonardo said:I copied BJ's formula and changed the A's and B's where I thought it would
be
appropriate. Nothing I did to his formula gave me a normal answer.
The #DIV/0! is from my simple formula.
I thought it would be helpful if I showed what I was getting.
Below is BJ's formula and the first column is A1, the second column is B1
the third column is C1 - where the formula is.
I need C1 to show either the divided answer or a 0
75 1 =if(and(isnumber(A1),isnumber(A2),if(A1<>0,A2/A1,0),0)
75 1 75David Biddulph said:bj gave you a formula most recently for dealing with A2/A1.
If you are getting problems with A1/B1 did you replace bj's A1 references
with B1, and did you replace his A2 references with A1?
[Or otherwise, use bj's original formula which was written for A1/B1.]
Why not copy the formula you are using and paste it here?
You couldn't have got a #DIV/0 if you had used either of bj's formulae
appropriately.
--
David Biddulph
message
Sorry that did not work.
What I have is =sum(A1/B1) and the answer I get is a number or if the
number is zero I get in cell A# is #DIV/0!
I am trying to not get the #DIV/0! I want a plain 0 in A3
So I need the A1/B1 with something to make it say 0 is the answer is 0.
thanks for all you help
:
=if(and(isnumber(A1),isnumber(A2),if(A1<>0,A2/A1,0),0)
this checks if both are numbers and that the demonimator is not zero
befor
dividing and if not will give a zero.
:
I have a number in cell A1, and in A2.
I need to divide A2 by A1 into A3 (that I can do)
I need A3 to be the answer in the form of a number or have it show a
"0"
something like - If A3<1, "0", otherwise put the answer there.
:
I am not sure what you want but maybe something like
numerator in Cell A1
Denominator in Cell B1
=if(or(B1=0,b1=""),0,A1/B1)
the simple response to your question might also be
=A1/B1
:
how do I tell a formula to divide two cells, leave a "0" if
that,
and leave
the number is there is a number?