+ Reply to Thread
Results 1 to 7 of 7

Find the highest & lowest ever value in multiple cells containing streaming data using UDF

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    3

    Find the highest & lowest ever value in multiple cells containing streaming data using UDF

    i currently have a spreadsheet which is streaming numerical data.
    i would like to monitor the highest and lowest values relating to a specific cell.

    i found this post helpful using UDF's however it only alows for one cell to be monitored not multiple individual cells. i think its because it always reverts to the same stored min and stored max of the oithers
    the code is below. if anyone can help it would be most appreciated.

    thanking you in advance


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Find the highest & lowest ever value in multiple cells containing streaming data using

    how is this specific cell changing

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Find the highest & lowest ever value in multiple cells containing streaming data using

    try this small change.
    Please Login or Register  to view this content.
    when you write this function, you enter a range of the cells you want to survey.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  4. #4
    Registered User
    Join Date
    01-06-2014
    Location
    Sydney
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Find the highest & lowest ever value in multiple cells containing streaming data using

    thanks for your help. that worked well. i also found this link witch does it without the need for a UDF just then.

    does the same thing pretty much. you just have to allow circular references
    http://www.cpearson.com/newsletter/c...2007_07_23.htm

  5. #5
    Registered User
    Join Date
    09-20-2016
    Location
    Belgium
    MS-Off Ver
    2011
    Posts
    2

    Re: Find the highest & lowest ever value in multiple cells containing streaming data using

    Hello,

    I have a problem with this code.
    Starting with 0 in range A1:A12, if I enter 5 in A1 then runningMin will show 5 in D1 and so will runningMax in E1. If I enter 7 in A1, then runningMin will keep 5 in D1 and runningMax will change to 7 in E1. So far, so good.
    Then I enter 3 then 9 in A2, runningMin and runningMax will show 3 and 9 in D2 and E2 respectively. So far, so good.
    But then, if I enter 6 then 7 in A3, runningMin will still show 3 in D3 and runningMax show 9 in E3, wheras I need them to show 6 and 7 in D3 and E3 respecyively.
    It looks like storedMin and storedMax keep the lowest and highest value they ever encountered.
    I'd like to keep a separate Minimum and Maximum value for each individual cell in column A.
    I herewith attach an example sheet of what I need.

    Thank you for your help!
    Regards,
    Laurent
    Attached Files Attached Files

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Find the highest & lowest ever value in multiple cells containing streaming data using

    try this:
    Please Login or Register  to view this content.
    it is good to store 1000 rows of min and max individually.

  7. #7
    Registered User
    Join Date
    09-20-2016
    Location
    Belgium
    MS-Off Ver
    2011
    Posts
    2
    Thank you very much for your help!
    I have a problem with the script when I connect multiple worksheets to different markets.
    My workbook contains 50 worksheets named "Bet Angel (1)", "Bet Angel (2)", "Bet Angel (3)", ..., "Bet Angel (50)".
    All of them have several dynamically updated cells, for which I use your script to detect runningMin and runningMax, which both refer to the same cells (range) in every worksheet (cells K9, K11, K13, ..., K65).
    The problem is that your script works very well with a single worksheet, but not with multiple worksheets in the same workbook.
    Is there an easy solution or would I have to assign a different function for each worksheet?
    Thank you and best regards,
    Laurent.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-07-2014, 03:38 AM
  2. Find highest and lowest values for a range of dates
    By kersties in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2013, 05:55 AM
  3. Find Highest/lowest numbers!
    By stewart08 in forum Excel General
    Replies: 3
    Last Post: 04-07-2008, 12:42 PM
  4. Streaming Data updating cell with highest value so far
    By creztor in forum Excel General
    Replies: 1
    Last Post: 11-30-2007, 12:09 PM
  5. Find lowest and highest value from a set of rows
    By Paul A via OfficeKB.com in forum Excel General
    Replies: 5
    Last Post: 07-16-2005, 11:05 AM

Tags for this Thread

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