+ Reply to Thread
Results 1 to 11 of 11

function to find name related to highest value

  1. #1
    Registered User
    Join Date
    09-30-2007
    Posts
    4

    function to find name related to highest value

    i have six cells with six names . each cell (with its name) has got a value in a near cell.

    for example (consider each letter is a cell and each number/value is a cell):

    a 1
    b 2
    c 3
    d 4
    e 5
    f 6

    i want to find a function that writes, in another cell, the name of the cell whose near cell has got the highest value.

    in the case above, it would be "f".

    i don't know if i explained myself well

    thanks for any help !

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this help

    =INDEX(A1:A6,MATCH(MAX(B1:B6),B1:B6,0))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    09-30-2007
    Posts
    4
    Quote Originally Posted by VBA Noob
    Does this help

    =INDEX(A1:A6,MATCH(MAX(B1:B6),B1:B6,0))

    VBA Noob
    are you sure ? because it gives me error ... is the final 0 ok ?

    thanks !

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Worked for me

    VBA Noob
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-30-2007
    Posts
    4
    Quote Originally Posted by VBA Noob
    Worked for me

    VBA Noob

    I WILL TRY , thanks !

    also, can't i do it with the LOOKUP function ?

    i tried =LOOKUP(MAX,A1:A6,B1:B6) but it does not work ..

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Take a look at Help for VLOOKUP, and you'll see why it can't work for this.

  7. #7
    Registered User
    Join Date
    08-01-2011
    Location
    quetta
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: function to find name related to highest value

    I have also the same problem but in this problem i want to fint the top three value names.
    can any one help me?


    Quote Originally Posted by hoopes View Post
    i have six cells with six names . each cell (with its name) has got a value in a near cell.

    for example (consider each letter is a cell and each number/value is a cell):

    a 1
    b 2
    c 3
    d 4
    e 5
    f 6

    i want to find a function that writes, in another cell, the name of the cell whose near cell has got the highest value.

    in the case above, it would be "f".

    i don't know if i explained myself well

    thanks for any help !

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: function to find name related to highest value

    Open new thread, give it propper name (check rule 1 of the rules) and upload example.

    that will give your answer really fast.
    Never use Merged Cells in Excel

  9. #9
    Registered User
    Join Date
    04-10-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: function to find name related to highest value

    Eg:
    Name nO.OF DAYS PRESET
    ABCD 30
    EFGH 30
    IJKL 20
    MNOP 22
    I WANT THE NAME OF HIGHEST NUMBER OF DAYS PRESET... IN THIS 30 TWICE HOW TO DISPLAY THE TWO NAMES?

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: function to find name related to highest value

    raji123,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  11. #11
    Registered User
    Join Date
    04-10-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: function to find name related to highest value

    Ok thanks

+ 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