Results 1 to 7 of 7

More efficient way to find max value for an array of values

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    More efficient way to find max value for an array of values

    Hi,

    I have a macro that works.........but it takes ~23sec to run. I am trying to find a quicker more efficient way to do the same thing. I am thinking a scripting dictionary way might be the answer.

    What macro is supposed to do:
    See "Data_And_Output" worksheet. Three cols of data on this sheet.

    SubjectIDs: List of subject values
    Expected: Expected value for each subject
    Max Expected: This is the column the macro calculates. Maximum expected value for subject value listed in col-A.

    NOTE: In order to attach file i had to reduce the number of rows.......originally number of rows was 108770. BUt i am reducing it to 70,000 rows
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  2. Find the top 3 values of an array
    By alphecca in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-21-2011, 02:56 PM
  3. Most efficient way to find string in array members
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2010, 12:08 PM
  4. Replies: 13
    Last Post: 01-26-2010, 05:29 PM
  5. [SOLVED] Efficient Array Formula Construction
    By Mike Moore in forum Excel General
    Replies: 8
    Last Post: 07-23-2006, 07:37 PM

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