+ Reply to Thread
Results 1 to 4 of 4

Returning Multiple Column Headers based on cell values

  1. #1
    Registered User
    Join Date
    01-28-2019
    Location
    Rishon
    MS-Off Ver
    2016
    Posts
    2

    Returning Multiple Column Headers based on cell values

    Hi,

    I am arranging schedules for multiple students and have an excel file that has the class names along the top, student's names along the side and a matrix of confirmed/blank.

    I want to be able to enter a students name and have all the classes they are taking (column headings) returned in a list.

    I am totally stuck - I wrote the following but it only returns the first class that is confirmed, while I need all of them.

    =INDEX(Classes,MATCH("Confirmed", INDEX(Confirmation,MATCH(C31,Name,1),),0))

    Example worksheet attached
    I have Excel 2016 but not 365.

    Thank you!!
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Returning Multiple Column Headers based on cell values

    b32=IFERROR(INDEX($1:$1,AGGREGATE(15,6,COLUMN(Classes)/(INDEX(Confirmation,MATCH($C$31,Name,0),0)="Confirmed"),ROWS(B$32:B32))),"")
    try this copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    01-28-2019
    Location
    Rishon
    MS-Off Ver
    2016
    Posts
    2

    Re: Returning Multiple Column Headers based on cell values

    Amazing, thank you. I'm relatively new at excel, if it is not too much to ask would you mind explaining how it works so I could do it myself in the future?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Returning Multiple Column Headers based on cell values

    Hello sitush and Welcome to Excel Forum.
    One good way to discover what a formula is doing is to use the Evaluate Formula feature found on the Formulas tab.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Returning Value based on references in row and column headers
    By uvebeenwarrened in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-30-2017, 03:29 PM
  2. [SOLVED] Returning Column Headers for Max Values with Ties
    By JHansee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-12-2017, 10:00 AM
  3. Replies: 9
    Last Post: 09-07-2014, 05:42 PM
  4. Returning non-blank cell column/row headers to new array
    By jjkellog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2013, 10:45 AM
  5. [SOLVED] Return multiple values from another workbook, based on Column Headers in other workbook
    By GoGators in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 02:11 PM
  6. Returning a value to a single cell based on multiple values elsewhere.
    By archieross in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2012, 07:35 PM
  7. Replies: 2
    Last Post: 02-01-2012, 06:28 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