IF function ?

Tony Jenks

New Member
Joined
Mar 31, 2016
Messages
15
Hi guys,

I am having a brain freeze.

If I have a number of 700 (A1) but I only want to calculate the difference if its plus or minus 5% of it what formula should I use?

I wanted to attach a file but I cannot see the option and do not know how to do it.

Thanks

TJ
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi guys,

I am having a brain freeze.

If I have a number of 700 (A1) but I only want to calculate the difference if its plus or minus 5% of it what formula should I use?

I wanted to attach a file but I cannot see the option and do not know how to do it.

Thanks

TJ

=IF(Value>735,"Plus 5%",IF(A1<665,"Minus 5%","Within Range"))
 
Upvote 0
Thanks but I think we have a misunderstanding - have used this Nested If formula already:
Code:
<b31,b40-b31,if(b40>[SIZE=2][COLOR=#3E3E3E]=IF(B40 < B31,B40-B31,IF(B40 > B22,B40-B22,0))[/COLOR][/SIZE]

Assuming A1 is 700, I have then made cell B31 665 and cell B22 735 when cell B40 was 661 then cell B57 was 4 (if B40 had been 680 then cell B57 would have been 0) - As cell A1 can change I was hoping there was a formula that can skip the middle steps</b31,b40-b31,if(b40>
 
Last edited by a moderator:
Upvote 0
If you have this formula:
Code:
<b31,b40-b31,if(b40>[SIZE=2][COLOR=#3E3E3E]=IF(B40 < B31,B40-B31,IF(B40 > B22,B40-B22,0))[/COLOR][/SIZE]</b31,b40-b31,if(b40>
and it is working, simply replace the calculations you are pulling from those other cells (i.e. B22, B31, etc) for the cell references in that formula, i.e.
Code:
=IF(B40 < (A1*95%),B40-(A1*95%),IF(B40 > (A1*105%),B40-(A1*105%),0))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top