Within a range....

T

Tubthumper

Hi

I need a formula that will tell me whether B1 is within a
tolerance of +/- 10% of the value of A1. I'm sure that
there is an easy way....

Thanks folks

Tubthumper
 
H

Harlan Grove

Frank Kabel said:
try
=IF(ABS(B1-A1)/A1<=0.1,"within range","outside range")
....

This probably works for the OP, but the condition would be tautologically
true if A1 were negative. Safer to cancel like terms,

=IF(ABS(B1/A1-1)<=0.1,...)
 

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

Top