Formula if a number is within a range

Hi there,


I am wanting to create a formula so that if the percentage difference is outside of 5%

either above or below), acceptable states NO. Therefore is the % difference is +/- 4.9% acceptable is YES.


I would most appreciate if someone could please point me in the right direction. It has been some time since I have done formulas and I can't seem to get it right.


Thanks in advance,

Hayley

iMac 24″, macOS 13.3

Posted on May 8, 2023 12:16 AM

Reply
Question marked as Top-ranking reply

Posted on May 8, 2023 1:12 AM

Hi Hayley,

HayleyHatzi wrote:

1st post: I am wanting to create a formula so that if the percentage difference is outside of 5%
either above or below), acceptable states NO. Therefore is the % difference is +/- 4.9% acceptable is YES.

2nd post: My formula is not distinguishing between positive and minus. By the way, I have now changed it to 4%.


  • 4% is 0.04, not 4
  • To convert positive and minus to positive, the ABS function is your friend.


Try this:


By the way, I have turned off Use header names as labels in Numbers > Settings > General. I find that easier to create and debug formulas.


I hope I have understood your aim!

Regards,

Ian.

3 replies
Question marked as Top-ranking reply

May 8, 2023 1:12 AM in response to HayleyHatzi

Hi Hayley,

HayleyHatzi wrote:

1st post: I am wanting to create a formula so that if the percentage difference is outside of 5%
either above or below), acceptable states NO. Therefore is the % difference is +/- 4.9% acceptable is YES.

2nd post: My formula is not distinguishing between positive and minus. By the way, I have now changed it to 4%.


  • 4% is 0.04, not 4
  • To convert positive and minus to positive, the ABS function is your friend.


Try this:


By the way, I have turned off Use header names as labels in Numbers > Settings > General. I find that easier to create and debug formulas.


I hope I have understood your aim!

Regards,

Ian.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Formula if a number is within a range

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.