+ Reply to Thread
Results 1 to 9 of 9

Find highest value in unsorted column and return data of other cell

  1. #1
    Registered User
    Join Date
    10-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    4

    Find highest value in unsorted column and return data of other cell

    Hi All,

    Here is the example

    COLUMN 1 COLUMN 2 COLUMN 3 COLUMN 4
    10 56 60 12
    20 86 12 8
    30 16 80 60
    40 5 15 4

    Its a 4 column table and i need to look up the highest value in column 4 and return the data of column 3 in a cell. I tried with VLOOKUP but it does not work since the column is not sorted. Is there another way.

    Brgds,
    Last edited by vergrootglas; 10-07-2012 at 10:51 AM. Reason: columns not good centered

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Find highest value in unsorted column and return data of other cell

    =INDEX($C$1:$C$10,MATCH(MAX($D$1:$D$10),$D$1:$D$10,0)) should do it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Find highest value in unsorted column and return data of other cell

    Perhaps
    Please Login or Register  to view this content.
    ?

  4. #4
    Registered User
    Join Date
    10-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Find highest value in unsorted column and return data of other cell

    Thanks guys works like a charm!

  5. #5
    Registered User
    Join Date
    10-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Find highest value in unsorted column and return data of other cell

    ...another thing....how can i change this formula so it will lookup the second highest value and give the data also of the column 3

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Find highest value in unsorted column and return data of other cell

    Hi vergrootglas

    Use the LARGE function

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

  7. #7
    Registered User
    Join Date
    10-07-2012
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Find highest value in unsorted column and return data of other cell

    Thanks to all of you....works perfect now, just what i needed!

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find highest value in unsorted column and return data of other cell

    try

    =INDEX($C$1:$C$10,MATCH(LARGE($D$1:$D$10,2),$D$1:$D$10,0))

    Change the highlighted portion according as per largest(1), 2nd largest(2), 3rd largest(3) and so on...
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  9. #9
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Find highest value in unsorted column and return data of other cell

    Your second largest is column 4 is zero and you have got 6 and 8 coresponding.
    Are you happy with the first return as proposed?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ 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