+ Reply to Thread
Results 1 to 12 of 12

Return top 5 results w/corresponding text from adjacent cells

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Return top 5 results w/corresponding text from adjacent cells

    Greetings All,

    Brand new to these forums, so please bear with me, as I'm sure this has probably been asked plenty of times in the past (unfortunately, I haven't been able to get any of the formulas I've seen to work). Here it goes...

    Assume I have the following data:

    Column J (J6:J14)
    5
    3
    0
    7
    1
    2
    0
    2

    Column M (M6:M14)
    Apples
    Oranges
    Grapes
    Kiwis
    Pears
    Plums
    Figs
    Bananas

    I need a formula that returns the top five values in column J and then returns the corresponding text from column M in another column. So the answer should show as:

    7 Kiwis
    5 Apples
    3 Oranges
    2 Plums
    2 Bananas

    I suspect the answer utilizes the "Index", "Match" & "Large" functions in some form, but I haven't been able to make it work (particularly when there are several answers with the same numerical value in column J). I've literally spent hours on this, to no avail, so I've kind of given up at this point. If anyone out there can post an actual formula, I would greatly appreciate it! Thanks for any help!
    Last edited by jsmifc; 02-21-2013 at 06:03 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    dutch d1
    Please Login or Register  to view this content.
    english d1
    Please Login or Register  to view this content.
    and drag down
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Return top 5 results w/corresponding text from adjacent cells

    Hi oeldere... Thanks for the quick reply. Unfortunately, when I enter that formula, I get the following: #NUM!

    Is there something I'm doing wrong?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    What the rownumber you put the formula in?

  5. #5
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Return top 5 results w/corresponding text from adjacent cells

    The formula is being put in cell J32.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Return top 5 results w/corresponding text from adjacent cells

    Okay, looks like some progress, but here's where I've repeatedly got stuck... It is listing plums twice, rather than plums and bananas (I'm guessing because they both have the same corresponding numerical # (2).

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    I noticed that, but just solve 1 problem at the same time.

    Add an helpcolumn to make the value unique.

    In my case I use column I.

    I6 =
    Please Login or Register  to view this content.
    and drag down.

    then the formula in J32 will be:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Return top 5 results w/corresponding text from adjacent cells

    Sorry, I'm not familiar with "helpcolumn"... Nor am I sure what you mean by "make the value unique" (perhaps this is why I can't get it to work).
    Also, are you saying I need to put the formula J6-Row()/1000000 into cell I6?

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    Yep, see the attached file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-21-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Return top 5 results w/corresponding text from adjacent cells

    BAM! Oeldere, you rock! Not sure how or why that worked, but it's working now! I'll need to "reverse" research the reason that worked (because I'm weird like that). Very cool! Thank you so much!

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return top 5 results w/corresponding text from adjacent cells

    Using the formula in column I, makes ALL the values unique.

    It divide the rownumber:

    I 6 = row 6 => 6 / 10000

    I 7 = row 7 => 7 / 10000

    Thanks for the reply.

    Glad I could help.

    If your question is solved, will you mark your question as solved.

    If you have (other) questions on this item, just ask or comment.

    You can add a rep. (point) to the member who helped you.

    In that case you have to click on the star (*) on the left side of the topic.

+ 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