Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Recording maximum and minimum

I have a spreadsheet in which a value is automatically imported into B2
each day.

I would like B3 to automatically show the maximum value ever reached in
B2 and, in B4, the minimum ever reached by B2. Could someone advise me
on how I might do this please.

TIA.

--
F
(Beware of spam trap - remove the negative)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Recording maximum and minimum

Hi F

You can add this to your code

If Range("B2").Value Range("B3").Value Then
Range("B3").Value = Range("B2").Value
End If

You can do the same for minimum

--
Regards Ron de Bruin
http://www.rondebruin.nl


"F" wrote in message ...
I have a spreadsheet in which a value is automatically imported into B2 each day.

I would like B3 to automatically show the maximum value ever reached in B2 and, in B4, the minimum ever reached by B2. Could
someone advise me on how I might do this please.

TIA.

--
F
(Beware of spam trap - remove the negative)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Recording maximum and minimum

Hi Ron

Thanks for the help: appreciated!

--
F
(Beware of spam trap - remove the negative)
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
Formula for Minimum/Maximum LaDonna Brooks Excel Worksheet Functions 2 June 24th 09 05:57 AM
Maximum and Minimum of a cell that changes dan Excel Discussion (Misc queries) 3 June 17th 09 07:15 PM
maximum/minimum value in formula Tim G. Excel Discussion (Misc queries) 2 January 10th 07 10:38 AM
Spinners - minimum and maximum Brad Excel Discussion (Misc queries) 2 September 11th 06 03:33 PM
Maximum and minimum cell value sharkfoot Excel Discussion (Misc queries) 3 March 5th 06 11:08 PM


All times are GMT +1. The time now is 01:51 AM.

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"