+ Reply to Thread
Results 1 to 3 of 3

Creating a column with index names from other columns

  1. #1
    Registered User
    Join Date
    12-06-2018
    Location
    Norway
    MS-Off Ver
    1811
    Posts
    31

    Creating a column with index names from other columns

    Hello,

    I'm guessing the process I'd like to undertake involves the functions MAX and INDEX, although I'm not sure how to implement both in the same formula.

    I've attached a sample of my data. In column K, I would like to have the name of one of the column headers from [F1:K1] which has the maximum value for each row.

    I've attached a second file "sample_output" which shows how the output file should look like.

    Hope this question was interesting. Any input is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Creating a column with index names from other columns

    You can use this formula in K2:

    =INDEX($F$1:$J$1,MATCH(MAX(F2:J2),F2:J2,0))

    Note that you may have to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Copy the formula down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Creating a column with index names from other columns

    Thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Running a macro to index names across numerous columns and creating summary sheet.
    By mrscottjr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2015, 03:19 AM
  2. [SOLVED] Help comparing two columns of data with same names different values (index match??)
    By exceldion in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-16-2015, 09:43 AM
  3. Creating Names from column headings
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2013, 09:03 PM
  4. [SOLVED] VBA for creating Index-Match every 2 rows where INDEX refer to a different column per row
    By bisaya789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 03:46 AM
  5. Creating an Array with Names instead of Index Numbers
    By redbrad0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2010, 02:45 PM
  6. Creating an Index when different names are in non-simultaneous rows
    By torontoguy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2009, 04:33 PM
  7. Creating and Index with worksheet names
    By JackR in forum Excel General
    Replies: 1
    Last Post: 02-23-2006, 04:20 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