+ Reply to Thread
Results 1 to 10 of 10

How to quickly find the highest value in a table?

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel Windows 2010, Mac 2011
    Posts
    14

    How to quickly find the highest value in a table?

    I have a table of data imported from a csv file. There are 10 columns across the top. Down the side there are a couple of hundred rows representing dates/times.

    For each of the 10 columns, I need to determine the date/time when its value was the highest. Of course I could plot a visual graph and look for peaks, but I'm hoping for a faster way to do this. Is there some trick or macro that would accomplish this very quickly? Thanks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: How to quickly find the highest value in a table?

    Please read the yellow banner at the top of this page.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to quickly find the highest value in a table?

    Assuming data in A1:K200 and date/time stamps are column A:

    1) B202 =MAX(B1:B200) copied into B202:K202
    2) B203 =INDEX($A$1:$A$200,MATCH(B202,B1:B200,0)) copied into B203:K203. Format in desired date/time format, if Excel does not do it automatically.

    Will that work?
    Last edited by MrShorty; 01-09-2021 at 09:55 AM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel Windows 2010, Mac 2011
    Posts
    14

    Re: How to quickly find the highest value in a table?

    Thanks, MrShorty. I independently ran across the MAX() function, but was stuck on how to obtain the date/time for the peak value. I'll look into INDEX() and MATCH().

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to quickly find the highest value in a table?

    If it helps, MSFT has documentation for all of Excel's functions here (INDEX() and MATCH() are under lookup and reference functions): https://support.microsoft.com/en-us/...rs=en-us&ad=us

  6. #6
    Registered User
    Join Date
    08-23-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel Windows 2010, Mac 2011
    Posts
    14

    Re: How to quickly find the highest value in a table?

    Thanks again. One quick question:

    B203 =INDEX($A$1:$A$200,MATCH(B02,B1:B200,0))
    I'm scratching my head about "B02". Could that actually be "B202" (i.e. pointing to the result of the MAX() function in the row just above it)?

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: How to quickly find the highest value in a table?

    I'm scratching my head about "B02". Could that actually be "B202"
    That is correct. I was careless in my proofreading. I will go back and fix it in post #3. Glad you were able recognize my error.

  8. #8
    Registered User
    Join Date
    08-23-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel Windows 2010, Mac 2011
    Posts
    14

    Re: How to quickly find the highest value in a table?

    Thank you! This should be a time-saver for me, and I appreciate the help.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: How to quickly find the highest value in a table?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    08-23-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel Windows 2010, Mac 2011
    Posts
    14

    Re: How to quickly find the highest value in a table?

    Thanks for the tips, done.

+ 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: 3
    Last Post: 06-28-2019, 08:46 AM
  2. [SOLVED] trying to find the next highest number in a table
    By daveyp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2015, 02:37 PM
  3. Find highest value in table and return earliest occurence (name)
    By potatoman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2014, 02:44 PM
  4. Replies: 10
    Last Post: 10-04-2013, 04:00 AM
  5. VBA macro Find & Copy the five highest and lowest value and paste it to a Table
    By genera74 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2013, 09:55 PM
  6. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  7. Replies: 2
    Last Post: 09-19-2008, 10:22 AM

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