+ Reply to Thread
Results 1 to 4 of 4

Looking for a Max Function that returns a column heading

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Looking for a Max Function that returns a column heading

    Let's say I have data that looks like this grid below. Each color represents a column heading and each number is a data point within that column.

    Blue Red Green Yellow
    18 27 15 36
    56 41 3 22


    Can I write a formula that would do the following 2 things with the data in this format:

    1. Find the max of the data...simple =Max(...) formula
    2. Use the max to return the column heading. In this case the max is 56 so the value I want to return is "Blue"

    Thanks

    Edit: The spacing isn't right after posting, but you get the idea.
    Last edited by ExcelDavid; 03-28-2014 at 10:00 AM.

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

    Re: Does a Function Exist to Accomplish this?

    Maybe something like this?

    All is Array Formula

    cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: Looking for a Max Function that returns a column heading

    Ok so I tried your formula but was having difficulty because ultimately I'm trying to access a different sheet...sorry for the confusion.

    I've attached and example of what I'm trying to accomplish. Ultimately I want the yellow highlighted cell to return the day of the week associated with the max in the cell to the left, based on data from the 1905 tab.

    Can this be done?

    Thanks,
    Attached Files Attached Files

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

    Re: Looking for a Max Function that returns a column heading

    =INDEX('1905'!A1:G1,,MAX(IF('1905'!A2:G20=B4,COLUMN('1905'!A1:G1)-COLUMN(A2)+1)))

    Array Formula
    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. Does a function exist to do what i want?
    By nebulis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2009, 03:29 PM
  2. Replies: 4
    Last Post: 06-18-2006, 01:10 PM
  3. [SOLVED] Exist a function to...
    By 0xC00D11CD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2006, 07:25 AM
  4. Formula or Function to accomplish this?
    By elcapitan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2006, 05:20 AM
  5. Replies: 1
    Last Post: 06-08-2005, 11:05 AM

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