Formula: % Triggers

andyb16

Board Regular
Joined
Apr 19, 2011
Messages
77
Hi All,

I am having a tough time building a formula..

Here are the requirements:

Base Exchange Rate = 45

Average Exchange rate = "can be any number"

Now there is to no action to be taken if average exchange rate is within +-5%(floor and ceiling) of the base exchange rate. However, once the base ex rate falls below either side of 5% then the formula should calculate the % difference between the average exchange rate and the floor or ceiling value(42.75 or 47.25) as the case maybe.

Please help!

Thanks.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Assuming the average rate is in B1, with the comparison rates starting in B3:

C3 is
Code:
=(ABS(B3-$B$1) > =0.05)*(B3-$B$1)

Without the spaces. They are there to stop the forum software treating > and < as tags.

Denis
 
Upvote 0
Thanks Denis,

Its working...On this code, what does (B3-$B$1) > .05 do? I mean, its not an if function, therefore i am confused how it tests for a range? and why we multiply its result again to the difference?

=(ABS(B3-$B$1) > =0.05)*(B3-$B$1)
 
Upvote 0
Hi Andy,

The first part of the formula tests that the difference is > = 0.05.
That turns into TRUE and FALSE, which Excel interprets as 1 and 0. When that is multiplied by the difference, you only get a non-zero value where the difference is outside the threshhold.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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