+ Reply to Thread
Results 1 to 7 of 7

How to return different column header from 2 same values?

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    9

    How to return different column header from 2 same values?

    I have a problem..

    A1 A2 A3 A4 A5 A6
    600 500 400 500 700 300

    I'm using =INDEX(A1:F1,MATCH(LARGE(A2:F2,1),A2:F2,0)) to get the column header and =LARGE(A2:F2,COUNTIF(A2:F2,MAX(A2:F2))) to get the value, however, Im getting 2 same header (A2) for value 500 which show in the pic, how should I get A4 as the 4th as shown below? Help needed..thx much

    Test.JPG

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: How to return different column header from 2 same values?

    Perhaps something like this? Using array formula


    see u
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-06-2015
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    9

    Re: How to return different column header from 2 same values?

    thx Azumi, however the answer is getting 2 A2 as 3rd and 4th as well.. how should I supposed to get A2 & A4 as 3rd and 4th? thanks again

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: How to return different column header from 2 same values?

    Oooops sorry im misread your requirement, pls see this
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-06-2015
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    9

    Re: How to return different column header from 2 same values?

    hi azumi, i copy exactly your code to paste in excel, but it returned different answer..see below..
    need your help again..thanks

    ye.JPG

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: How to return different column header from 2 same values?

    Sorry forget to tell you, you need to ENTER the formula with this style, press/hit CTRL+SHIFT+ENTER button together, dont' ENTER alone, after that you can copied cross, thats array formula style.

  7. #7
    Registered User
    Join Date
    03-06-2015
    Location
    London, England
    MS-Off Ver
    2007
    Posts
    9

    Re: How to return different column header from 2 same values?

    Thanks azumi! Finally i got the style!! Thank you so much for your excellent help!!!

+ 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. [SOLVED] ID first and last non blank values in a row and return that cells column header
    By hotelmrrsn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2014, 02:35 PM
  2. [SOLVED] Find specific value in table and return header row and header column value
    By nelwan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2013, 01:35 AM
  3. Return column header, max value, 2 values same
    By bishopisgreat in forum Excel General
    Replies: 1
    Last Post: 09-09-2012, 07:40 AM
  4. [SOLVED] Return column header by comparing multiple row values conditions
    By aschom in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2012, 08:52 PM
  5. Find Max values in row then return Column Header
    By mrio in forum Excel General
    Replies: 0
    Last Post: 08-23-2006, 12:47 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