+ Reply to Thread
Results 1 to 9 of 9

Max-Min

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2005
    Posts
    5

    Max-Min

    Hi,

    I presently use a data feed variable that typically goes through a variety of highs and lows throught the day.

    Question is, how do I freeze the highest / lowest numbers so that I can review the days findings after the feed has been turned off?

    Any ideas?
    Last edited by kierco; 05-11-2005 at 11:20 AM.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Is this data feed populating just one cell and you want to 'trap' the high and low value for the day?
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    05-11-2005
    Posts
    5
    Yes. As simple as that but still puzzling to me

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I'm sure there is a way to do this, however it will require VBA coding that is beyond my meager programming capabilities.

    Hopefully, one our programming aces will have a solution to share with you.

    Stand by...

    Bruce

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,391
    Do you want to trap every local max/min, or just the overall max/min.

    Here's a solution to trap the overall max/min that doesn't use VBA coding:

    variable is input to cell a1
    a2=if(a1>a2,a1,a2) finds the overall max
    a3=if(a1<a3,a1,a3) finds overall min

    because these formulas set up circular references, you need to go into the options dialog and check the box next to "Iteration" on the "Calculation" tab. It will only need one iteration, so I would set the max iterations to 1.

  6. #6
    Registered User
    Join Date
    05-11-2005
    Posts
    5

    Tried it

    Mrshorty,

    I have tried this approach and it doesnt make it. When the data stream ends the solution has to be converted to text or number. Up to that point MAX min() works with the same short comings. Your solution still relies on the loop and when one variable drops out the whole thing crashes.

    Robk

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1