Help!

Subtraction that doesn't produce an error

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions RSS
Next:  Array lookup  
Author Message
Andy
External


Since: Mar 23, 2006
Posts: 253



PostPosted: Tue Nov 03, 2009 12:03 pm    Post subject: Subtraction that doesn't produce an error
Archived from groups: microsoft>public>excel>misc (more info?)

I want to do simple subtraction eg =A1-B1
The problem is, a1 might have an error in it and b1 might have an error in
it.
If either A1 or B1 has an error, I'd want it to just return whatever number
it has.
That is, if A1 is 7 and B1 has an error, then I'd like it to return 7
(substituting 0 for the error).
Any ideas? Thanks.
Back to top
Luke M
External


Since: Jan 08, 2009
Posts: 187



PostPosted: Tue Nov 03, 2009 1:37 pm    Post subject: RE: Subtraction that doesn't produce an error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

=IF(ISERROR(A1),0,A1)-IF(ISERROR(B1),0,B1)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Andy" wrote:

> I want to do simple subtraction eg =A1-B1
> The problem is, a1 might have an error in it and b1 might have an error in
> it.
> If either A1 or B1 has an error, I'd want it to just return whatever number
> it has.
> That is, if A1 is 7 and B1 has an error, then I'd like it to return 7
> (substituting 0 for the error).
> Any ideas? Thanks.
Back to top
Per Jessen
External


Since: Jan 27, 2009
Posts: 32



PostPosted: Tue Nov 03, 2009 4:10 pm    Post subject: Re: Subtraction that doesn't produce an error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

Try this:

=IF(ISERROR(A1),0,A1)-IF(ISERROR(B1),0,B1)

Regards,
Per

"Andy" <Andy.DeleteThis@discussions.microsoft.com> skrev i meddelelsen
news:E6AB6567-8A05-4AEA-977E-AA1F5A305091@microsoft.com...
>I want to do simple subtraction eg =A1-B1
> The problem is, a1 might have an error in it and b1 might have an error in
> it.
> If either A1 or B1 has an error, I'd want it to just return whatever
> number
> it has.
> That is, if A1 is 7 and B1 has an error, then I'd like it to return 7
> (substituting 0 for the error).
> Any ideas? Thanks.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum