+ Reply to Thread
Results 1 to 5 of 5

Return top three headers with the highest values (some with the same value)

  1. #1
    Registered User
    Join Date
    01-19-2017
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    3

    Return top three headers with the highest values (some with the same value)

    Hello all, this is my first post and I am looking to solve a issue I am having.

    I have a row with values in them, some being exactly the same. These values have different header names but I cannot get a return of the different header if it so happens to be the same value as the one furthest to the left.

    For example: From the data below, I want to return, l Green l Red l Brown l in three different cells. If there is no data I want the cells to remain blank.

    Red l Green l Brown l Orange
    2 l 4 l 2 l 0


    Any help would be appreciated. TIA

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return top three headers with the highest values (some with the same value)

    Assuming A1:D1 contains the colours and A2:D2 the values then in E2 copied across

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-19-2017
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    3

    Re: Return top three headers with the highest values (some with the same value)

    example1.jpg



    Not sure if that will work but this is what I am working with.

  4. #4
    Registered User
    Join Date
    01-19-2017
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    3

    Re: Return top three headers with the highest values (some with the same value)

    Attachment 497966



    Not sure if that will work but this is what I am working with.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Return top three headers with the highest values (some with the same value)

    A common way of doing this to use "helper" rows or columns

    in E2:

    =A2+(COUNTIF($A2:A2,A2)-1)*0.01

    Copy across to H

    in I2

    =INDEX($A$1:$D$1,MATCH(LARGE($E$2:$H$2,COLUMNS($A:A)),$E$2:$H$2,0))

    copy across to K

    If you use this technique you can place the "helper" cells anywhere "out of sight"

+ 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. Finding the highest of 3 values, but only headers appear in text string
    By DaveBre in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-19-2014, 06:14 PM
  2. How to return column headers for where certain values appear in each row
    By gc-spurs in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-16-2014, 07:05 PM
  3. Return Headers Based On Two Values
    By just2cruz in forum Excel General
    Replies: 6
    Last Post: 06-16-2013, 08:31 PM
  4. Return Headers Based On Two Values
    By just2cruz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2013, 03:03 PM
  5. Replies: 2
    Last Post: 07-17-2012, 11:53 AM
  6. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  7. Return highest 4 values (MAX?)
    By beeawwb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2008, 09:50 PM

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