+ Reply to Thread
Results 1 to 7 of 7

Search lowest value in array, return respective column heading

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    Search lowest value in array, return respective column heading

    Hi

    I've got an array:

    A B C D
    0.141823256 0.742925121 0.851363101 0.595020487
    0.458170723 0.170578213 0.780241568 0.500781951
    0.781171057 0.524171642 0.027494503 0.053290996
    0.992753237 0.470996446 0.236928742 0.28520641

    I'm looking for a formula to search the entire array (A:D) for the lowest value, and return the column name in which the value lies, e.g. the bold 0.027494503 in column C, if it is the lowest value in the array, the cell in another column (say E) needs to just say "C"

    Please help! TIA

  2. #2
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Search lowest value in array, return respective column heading

    How about

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Liked the answer given? click * to say so

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Search lowest value in array, return respective column heading

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula, needs to be entered with Ctrl+Shift+Enter
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    Re: Search lowest value in array, return respective column heading

    Hey guys thanks for the help, but it still does not work

    I've attached the file, it has different people with custom format times: mm:ss.mss

    I need the fastest persons name to be displayed in the green cell on the left with their respective time: e.g. Mr C = 03:54.657

    Please assist

    TIA!!!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    Re: Search lowest value in array, return respective column heading

    Hey guys any luck?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Search lowest value in array, return respective column heading

    Put this formula in P4 for the quickest time...

    =MIN(B2:K31)

    ...and obviously in P5 for slowest time

    =MAX(B2:K51)

    ...and then in Q4 use this formula to get the name

    =INDEX(B$1:K$1,MIN(IF(B$2:K$31=P4,COLUMN(B$1:K$1)-COLUMN(B$1)+1)))

    confirm with CTRL+SHIFT+ENTER and copy to Q5

    if there are ties for slowest or quickest time you'll get the first name going left to right
    Audere est facere

  7. #7
    Registered User
    Join Date
    09-15-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2016
    Posts
    33

    Re: Search lowest value in array, return respective column heading

    Thanks daddylonglegs, works perfectly!!!!!

+ 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. [Macro Help] Search Column in a Table and Return Heading
    By x3ldonx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2012, 06:18 PM
  2. [SOLVED] Return the lowest value in one column based on a text search in a different column.
    By Juliana33 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-11-2012, 09:58 AM
  3. [SOLVED] search series and return and respective index // vlookup
    By dalaie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2012, 03:46 AM
  4. Replies: 1
    Last Post: 04-03-2012, 05:07 AM
  5. Replies: 4
    Last Post: 12-13-2011, 03:17 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