need the max value of a changing cell

yankee428

Active Member
Joined
Apr 12, 2004
Messages
348
Have a cell that changes thoughout the day via a DDE feed over which I have no control. I need to know what the high water mark (max) value was for that day without sitting and watching it for 8 hours.

I would prefer to do this with formula's instead of VBA.

Any idea's??
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi, yankee428,

You can't "catch" and "hold" values with formulas
If the source changes it's evident that the result will change too.

you can use a function or a worksheet_change event like this
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> Range("A1").Address Then Exit Sub
If Range("A1") > Range("B1") Then Range("B1") = Range("A1")
End Sub
cell A1 is the updated one
cell B1 catches the highest value

kind regards,
Erik
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,181
Members
449,071
Latest member
cdnMech

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