+ Reply to Thread
Results 1 to 9 of 9

Should I use Volokup or Index/max for this problem?

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Should I use Volokup or Index/max for this problem?

    I am trying to find a formula to use for a spreadsheet I am building. I have two columns, A has names, B has numbers. I want to find the max number in column B and return the value in column A from the same row. I know this is way easier than I am making it but it has been a while since Ive used excel and cant seem to jog my memory ths morning.
    Also there will most likely be more than row that has the same max value, is there any way to get it to return more than one name. For instance Sam and Sal both have the same number in column B. Can it say Sam,Sal in the cell for the returned value?



    Thanks for your help.
    Last edited by M_Burgess; 03-29-2012 at 11:55 AM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel formula help

    You need INDEX, MATCH and MAX

    =INDEX(A1:A100,match(max(B1:B100),B1:B100,0))

  3. #3
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Excel formula help

    Please change your title to something like finding max number as per forum rules.

    Are there duplicate values in B?
    If someone helped give them rep using the star button.

    If you have received a satisfactory solution please mark the thread solved. If not Fotis will come for you at night :P

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Excel formula help

    That formula JosephP will only return the first max value that is found. M_Burgess do you need to return multiple names if they have the highest number?

  5. #5
    Valued Forum Contributor
    Join Date
    03-14-2012
    Location
    Arizona USA
    MS-Off Ver
    Excel 2000/2007
    Posts
    408

    Re: Excel formula help

    See the sample attached.

    Click on the first value in column B(cell B2).
    From the toolbars, click on the Sort Descending(Z A down arrow image on it).

  6. #6
    Registered User
    Join Date
    03-29-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel formula help

    yes i would like to return multiple names if they have the same value.

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Excel formula help

    I didn't see the edited post! if you need more than one name returned you're gonna need some code, or you'll have to use more than one cell for the answers.

  8. #8
    Registered User
    Join Date
    03-29-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Excel formula help

    I have the formula working so it returns the first name, is there an easy way to have it return multiple names?
    Last edited by M_Burgess; 03-29-2012 at 12:32 PM.

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Should I use Volokup or Index/max for this problem?

    If you are okay with code you can have all matches returned to one cell. If not but maybe you know there will never be more than 3 matches, you could use formulas in three cells to return each match?

+ 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