• Calculate Highest Number

    Author
    Topic
    #458923

    Column 1 contains a list of names, and column 2 calculates the number of lunches that person attended. I know that I can use the MAX function on column 2 to determine the highest number in the lunches column, but how do I determine the name of the person who matches the MAX number?

    I am using Excel 2000/SP-3

    Thanks for your help.

    Viewing 1 reply thread
    Author
    Replies
    • #1155632

      The attached example should solve your dilemma. Note that there may be more than one person with the most. Also note that in rows 2:6, columns E:G have the same formulae; Row 1 is unique.

      • #1155648

        The attached example should solve your dilemma. Note that there may be more than one person with the most. Also note that in rows 2:6, columns E:G have the same formulae; Row 1 is unique.

        Thank you for your help! I’ll give a try.

    • #1155669

      An easier formula is to use:

      =LOOKUP(MAX(B2:B100),B2:B100,A2:A100)

      Assuming the list of diners is in range A2:A100. Adjust to fit

      • #1155678

        An easier formula is to use:

        =LOOKUP(MAX(B2:B100),B2:B100,A2:A100)

        Assuming the list of diners is in range A2:A100. Adjust to fit

        I don’t think that approach will work in this instance. Note the following from LOOKUP Help

        Important The values in lookup_vector must be placed in ascending order: …,-2, -1, 0, 1, 2, …, A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct value. Uppercase and lowercase text are equivalent.

    Viewing 1 reply thread
    Reply To: Calculate Highest Number

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: