+ Reply to Thread
Results 1 to 3 of 3

Pulling column headings using MIN

Hybrid View

  1. #1
    Registered User
    Join Date
    11-25-2009
    Location
    San Bernardino, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Pulling column headings using MIN

    I have a table that monitors how many contacts are made via phone, in person, in store and various other methods. The columns have headings representing the contact methods while the rows contain information for each sales person. I linked the cells in this table to another table that shows the lowest method of contact. I did this using the MIN function. I am looking for a way for Excel to pull the column heading into the table as well as the value so I know what contact method they are using least instead of having to go to the table and find the value and column heading. Any help would be greatly appreciated.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pulling column headings using MIN

    You can use INDEX with MATCH & MIN, eg

    =INDEX(Sheet1!$A$1:$J$1,MATCH(MIN(Sheet1!$A2:$J2),Sheet1!$A2:$J2,0))

    would pull header associated with MIN value found in A2:J2, copied down you would get headers associated with row 3, 4 etc...

    (worth noting that if there are multiple instances of MIN value the above will return only the header associated with the first MIN value found... if you need all returned in one cell then you're looking at far more complex solutions I'm afraid)

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Pulling column headings using MIN

    Hi,

    If your data is in C2:F30, and headings are in row 1,

    This array

    =MIN(IF(A1:C30=MIN(C2:F30),COLUMN(C2:F30),""))

    returns the column number that contains the 1st minimum in a range. Use this number in an index statement to return the header, another array:

    =INDEX(A1:F1,MIN(IF(NumRange=MIN(C2:F30),COLUMN(C2:F30),"")))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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