+ Reply to Thread
Results 1 to 4 of 4

Formula to Return highest values in a column and associated data

  1. #1
    Registered User
    Join Date
    12-23-2024
    Location
    Reading, England
    MS-Off Ver
    365
    Posts
    9

    Lightbulb Formula to Return highest values in a column and associated data

    Hi Everyone

    I am Looking for some help with a formula.

    I have a set of values split into two columns. One column represents a "name", then second column represents a "quantity" against that name.

    I would like to write a formula that will display a list of "names" that have the highest number in the quantity column.

    For example, lets assume that there are 10 values in the both the name and quantity column.

    The Highest value in the quantity column may be shared across multiple names. I.e. lets assume the highest quantity is 5, and this is shared by Tom, **** & Harry.

    I would like a formula that would list the values: Tom, ****, Harry in a single cell.

    I would like this cell to be dynamic, so if I update the quantity against Tom and **** to 6 in the original table, then Harry will disappear from my results of the formula.

    I hope that all makes sense. Hopefully someone can help :-)

    Example Excel for Formula.xlsx
    Last edited by elcapo_av; 02-03-2025 at 10:15 AM. Reason: adding excel

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

    Re: Formula to Return highest values in a column and associated data

    Let's assume Name is in A column and quantity in B column then your result in one cell you can get like: =TEXTJOIN(", ", TRUE, FILTER(A1:A100, B1:B100=MAX(B1:B100)))
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    12-23-2024
    Location
    Reading, England
    MS-Off Ver
    365
    Posts
    9

    Re: Formula to Return highest values in a column and associated data

    Absolutely AWESOME... thank you very much!!!!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Formula to Return highest values in a column and associated data

    elcapo_av welcome to the forum.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Dave

+ 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. Formula to return headers for 3 highest values in a row into the same cell
    By RICK JAMES in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2023, 04:01 PM
  2. [SOLVED] Formula to return the second highest value in a column
    By kimi01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2022, 04:18 PM
  3. [SOLVED] Formula to return header for 2 highest values in a row, into the same cell
    By RICK JAMES in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-18-2021, 10:50 PM
  4. [SOLVED] Formula to return the highest number in a column based on a matching second column
    By kersplash in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2019, 02:41 AM
  5. Replies: 8
    Last Post: 03-23-2017, 02:59 PM
  6. Replies: 2
    Last Post: 02-24-2017, 07:35 PM
  7. Replies: 3
    Last Post: 06-09-2016, 12:51 PM

Tags for this Thread

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