+ Reply to Thread
Results 1 to 7 of 7

Obtaining a formula to return the column heading/s according to max values in table row

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Exclamation Obtaining a formula to return the column heading/s according to max values in table row

    Hi.
    I need some help with an excel formula that will check the max value in the last row of a table and subsequently return the headings of the columns that contain those max values.
    I have attached my excel file in the hope it will become clearer what I am asking.
    The table I am referring to is located on the right (blue table) on the sheet called 'Data Table'.
    My aim is to check for the largest value/s in range M32:R32 and return the heading of that column in the yellow cell T4.
    In some cases, the largest value in the range M32:R32 may appear more than once, in which case I would like to obtain all the column headings.
    thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Obtaining a formula to return the column heading/s according to max values in table

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


    It's an array formula, you have to enter it with Ctrl + Shift + Enter.
    Copy down one row (or as many rows as you expect to have duplicates)
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Obtaining a formula to return the column heading/s according to max values in table

    Is this a duplicate post:

    http://www.excelforum.com/excel-form...f-a-table.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-05-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Exclamation Re: Obtaining a formula to return the column heading/s according to max values in table

    Thanks for your response. I cant seem to get that formula to work so have opted for a different method. Is there a way i could apply such a formula to a more simple table as the one on the spreadsheet i have attached. Thanks again!
    Attached Files Attached Files

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

    Re: Obtaining a formula to return the column heading/s according to max values in table

    Please check the file, hope it works for you

    Azumi
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-05-2013
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Obtaining a formula to return the column heading/s according to max values in table

    Thank you!

  7. #7
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Obtaining a formula to return the column heading/s according to max values in table

    Did you enter the formula with Ctrl + Shift + Enter?
    Attached Files Attached Files

+ 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. Replies: 7
    Last Post: 01-25-2013, 05:17 PM
  2. Return dates from a column heading in a table of arrows
    By Beeblebrox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2012, 09:12 PM
  3. [Macro Help] Search Column in a Table and Return Heading
    By x3ldonx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2012, 06:18 PM
  4. lookup values in a range,return corresponding column heading
    By aljaffa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2011, 04:31 PM
  5. Formula to Return Column Heading
    By den4673 in forum Excel General
    Replies: 4
    Last Post: 02-13-2006, 06:00 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