min max and if command issue

scolty1985

Board Regular
Joined
Sep 16, 2009
Messages
86
im currently stuck on the following

Code:
=IF((H2/E2)>=$O$2,1,IF(AND((H2/E2)<$O$2,(H2/E2)>=$O$3),0.5,0.25))

the above code is used to change a variable when the output signal stored in column H is less than the maximum recorded value witnessed in column H (Stored in column E).

What im now trying to do is once one of these lower triggers (O$2$, or O$3$) is triggered but the output signal then increases X percent from the lowest value (measured from the trigger of o$2$ or o$3$), i would like to change the variable back to 1.

ie something like this

if variable is now 0.5 or 0.25, begin recording min values

if current value is x% greater than min value, change variable to 1.


Is this possible?

Thanks
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

shemayisroel

Well-known Member
Joined
Sep 11, 2008
Messages
1,867
Not sure exactly what your trying to achieve

Could you post some sample data along with your expected results.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,112
Messages
5,640,174
Members
417,130
Latest member
Darion2021

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
Top