Capture Highest & Lowest Value

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,213
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
B2 gets updated by values due RTD
B3 I have kept a flag which becomes 1 for a certain time period (ONLY ONCE DURING A DAY)
Solution required:
B4=HIGHEST VALUE of B2 when B3=1 else 0
B5= LOWEST VALUE of B2 when B3=1 else 0
How to accomplish?
Thanks in adv
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If I understand what you want correctly then this should do what you need.

First go to options in the excel File menu, on the Formulas tab check the box that says 'Enable iterative calculation' and click OK.

In B4, =IF(B3=1,IF(B4=0,B2,MIN(B4,B2)),0)
In B5, =IF(B3=1,IF(B4=0,B2,MAX(B4,B2)),0)
 
Upvote 0
Don't think that the iterations will work correctly with vba.
 
Upvote 0
I want precision & not going to make my Excel adjust with iteration
 
Upvote 0
Have you tried it?

Using code (if it works) will not be any more precise.
 
Upvote 0
I tried but couldn't find the correct answer so approached this site
 
Upvote 0
I meant have you tried what I suggested?

That is more likely to work correctly than vba!
 
Upvote 0
Someone can use helpful columns or rows to achieve the result. Note the flaf remains for 30 minutes sharp when started
 
Upvote 0
Can someone give me code I can 'Put a cap' on the Max Value at 1000 & Minimum Value at 1
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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