+ Reply to Thread
Results 1 to 6 of 6

Return table headers based on multiple selection criteria (Index?)

  1. #1
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Return table headers based on multiple selection criteria (Index?)

    I need to figure out which option is applicable based on my selection criteria. So, if I select NY, options 1, 3 and 4 are applicable. Once add NJ, only options 3 and 4 are applicable. After I add 1 more selection like TN, I only get option 3 and so on. Is it an Index function? Can you please help?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,785

    Re: Return table headers based on multiple selection criteria (Index?)

    Where would the selections be made and in what way?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Return table headers based on multiple selection criteria (Index?)

    The selection would be made on the same worksheet or multiple worksheets. So for each row selection that I make, so it should return the header based if that row is applicable.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,785

    Re: Return table headers based on multiple selection criteria (Index?)

    Sorry, I am not visualising what you are describing.

    Can you provide a sample that shows (mocked up manually) the results you are looking for?

  5. #5
    Forum Contributor
    Join Date
    10-15-2009
    Location
    Broooklyn, NY
    MS-Off Ver
    Excel 2016
    Posts
    207

    Re: Return table headers based on multiple selection criteria (Index?)

    I don't know if I should be using formulas or pivot tables. Basically I need to filter by the states. A stands for applicable and NA stands for not applicable. So if I select NY, I want cell N6 to read Option 1, Option 3 and Option 4 but I need cell N6 to be updated as I select multiple options. So if NY has option 1, 3 and 4 applicable, then let's say I select NJ. Then it looks for the applicability for Option 1, 3 and 4 as NY was previously selected. Out of 3 options, applicability for NJ are options 3 and 4. SO, cell N6 should now read Options 3 and Options 4. Next if I select TN, out of 2 options only 1 option is applicable. Now cell N6 reads Option 3. So, A is a common factor between the states for each option. Hope it clarifies what I am trying to do.

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

    Re: Return table headers based on multiple selection criteria (Index?)

    Perhaps this will help.
    1. Populate C15:G15 using: =IF(COUNTIFS(C4:C14,"A",$H4:$H14,"x")=COUNTA($H4:$H14),C2,"")
    2. Populate C16:G16 using: =IF(AND(B16<>"",C15<>""),B16&", "&C15,IF(C15<>"",C15,B16))
    3. Populate B16 using: =""
    4. Populated N6 using: =G16
    Make selections in column H (as AliGW's question was never addressed I chose this method)
    Please update your profile. The 2003 version did not support .xlsx files.
    Let us know if you have any questions.
    Attached Files Attached Files
    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. Return multiple results based on multi-criteria selection
    By Macpic in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-19-2017, 12:33 PM
  2. [SOLVED] Return multiple column headers based on a row value
    By Algolik in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-19-2017, 07:21 PM
  3. Change PivotTable selection to multiple criteria based on table value
    By RaydenUK in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2015, 08:44 AM
  4. Replies: 29
    Last Post: 12-08-2014, 11:18 AM
  5. Replies: 2
    Last Post: 11-30-2014, 03:05 PM
  6. [SOLVED] INDEX Function to return a value based on multiple criteria.
    By carterbu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2013, 03:02 PM
  7. Select multiple criteria based on check box selection and return all unique values.
    By TommyToe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-21-2013, 09:14 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