Can I add a percentage formula to an IF statement?

G

Guest

I would like to me able to add percentages to an IF formaule allow for a
margin of error, say 10%. If anyone knows a way round it be much obliged.
the cell reads "=if(H2<=10%, "TRUE", if(h2=h3, "true", if(h2>10%, "false")))

Thanks
Abs
 
R

Roger Govier

Hi Abs

We need something to set the 10% against.
Lets say G2 is what you are comparing, and you want a result of true if
H2 is within 10% plus or minus of that value.

=IF(ABS(H2-G2)/G2<=10%,"true","false")
 
G

Guest

Hi Roger,

Manyt thanks for your help. Thank god there are geniuses like you out there
in www :)

Regards

Abs
 
R

Roger Govier

Hi Abs
geniuses like you
Phewww!!!
Steady on there, I'm no genius but there are a few about in these NG's
(thank goodness)

Thanks for the response and compliment though.
 

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