Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I record new Highest / Lowest numbers as data changes in ce

Hi, I'm quit new to using excel (07) but have so far been very impressed by
both it's features and it's ease of use - However I have stumbled upon a
problem that I cannot get around - PLEASE help me if you can...

I have a formula that returns a numeric value to a specific cell, Say A1,
this number will always be in the range of 0 to 1,000. A number of different
variables influence what the returned value is and this value changes
approximately 5 times per second. I want to be able to show the highest and
lowest value achieved in cells B1 (highest) and B2 (lowest) and have these
two cells both start out at 0 but auto update as a new high or low is
returned in A1

Any ideas on how I can achieve this or where I can go to find an answer
would be great.

Many Thanks,

Mike.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How do I record new Highest / Lowest numbers as data changes in ce

In B1 enter -1
In B2 enter 1001

In the worksheet code area enter:

Private Sub Worksheet_Calculate()
Set a1 = Range("A1")
v = a1.Value
Set b1 = Range("B1")
Set b2 = Range("B2")
Application.EnableEvents = False
If v b1.Value Then
b1.Value = v
End If

If v < b2.Value Then
b2.Value = v
End If
Application.EnableEvents = True
End Sub


--
Gary''s Student - gsnu200802


"Highbury 1" wrote:

Hi, I'm quit new to using excel (07) but have so far been very impressed by
both it's features and it's ease of use - However I have stumbled upon a
problem that I cannot get around - PLEASE help me if you can...

I have a formula that returns a numeric value to a specific cell, Say A1,
this number will always be in the range of 0 to 1,000. A number of different
variables influence what the returned value is and this value changes
approximately 5 times per second. I want to be able to show the highest and
lowest value achieved in cells B1 (highest) and B2 (lowest) and have these
two cells both start out at 0 but auto update as a new high or low is
returned in A1

Any ideas on how I can achieve this or where I can go to find an answer
would be great.

Many Thanks,

Mike.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default How do I record new Highest / Lowest numbers as data changes in ce

I couldn't get this to work in 2003 until I amended the Private Sub to

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

everything else the same

very useful Gary's student

edvwvw

Gary''s Student wrote:
In B1 enter -1
In B2 enter 1001

In the worksheet code area enter:

Private Sub Worksheet_Calculate()
Set a1 = Range("A1")
v = a1.Value
Set b1 = Range("B1")
Set b2 = Range("B2")
Application.EnableEvents = False
If v b1.Value Then
b1.Value = v
End If

If v < b2.Value Then
b2.Value = v
End If
Application.EnableEvents = True
End Sub

Hi, I'm quit new to using excel (07) but have so far been very impressed by
both it's features and it's ease of use - However I have stumbled upon a

[quoted text clipped - 14 lines]

Mike.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200809/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default How do I record new Highest / Lowest numbers as data changes i

Thanks so much for that, works like a charm....

"Gary''s Student" wrote:

In B1 enter -1
In B2 enter 1001

In the worksheet code area enter:

Private Sub Worksheet_Calculate()
Set a1 = Range("A1")
v = a1.Value
Set b1 = Range("B1")
Set b2 = Range("B2")
Application.EnableEvents = False
If v b1.Value Then
b1.Value = v
End If

If v < b2.Value Then
b2.Value = v
End If
Application.EnableEvents = True
End Sub


--
Gary''s Student - gsnu200802


"Highbury 1" wrote:

Hi, I'm quit new to using excel (07) but have so far been very impressed by
both it's features and it's ease of use - However I have stumbled upon a
problem that I cannot get around - PLEASE help me if you can...

I have a formula that returns a numeric value to a specific cell, Say A1,
this number will always be in the range of 0 to 1,000. A number of different
variables influence what the returned value is and this value changes
approximately 5 times per second. I want to be able to show the highest and
lowest value achieved in cells B1 (highest) and B2 (lowest) and have these
two cells both start out at 0 but auto update as a new high or low is
returned in A1

Any ideas on how I can achieve this or where I can go to find an answer
would be great.

Many Thanks,

Mike.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing numbers dropping lowest and highest SmartCookie Excel Worksheet Functions 2 April 7th 08 06:35 PM
Difference Between Highest And Lowest? Saxman Excel Discussion (Misc queries) 4 February 28th 07 02:53 PM
Graph Highest to Lowest. dot Excel Discussion (Misc queries) 2 October 20th 06 09:29 PM
How do you rank in order numbers from highest to the lowest? Anika Excel Worksheet Functions 4 September 13th 06 03:35 AM
Highest High and Lowest Low jimbob Excel Discussion (Misc queries) 6 March 9th 06 04:11 PM


All times are GMT +1. The time now is 11:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"