+ Reply to Thread
Results 1 to 6 of 6

Return Headers from Matches in a List

  1. #1
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Return Headers from Matches in a List

    Hi guys,

    I have a list of ingredients on Sheet2 (B4-B6) and I want any Menu Items that contain at least 1 of these ingredients to be returned in column C (C4 onwards).

    The list of ingredients are in the header of the same sheet (Row E onwards), with all subsiqent Menu Items listed in each collumn. If it is easier to return the Menu Item as a header, that is displayed in reverse on Sheet1.

    I've looked at INDEX and MATCH formulas for for the life of me can't get it to work.

    Any help is greatly appreciated.

    Danny
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Return Headers from Matches in a List

    I am wondering if you have made a mistake somewhere, in your formulae, or in your description of the problem...

    For ANY product that has clashing CK Items, please manually add expected answers in C4 downwards....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Re: Return Headers from Matches in a List

    Hi Glenn,

    Apologies for the confusion.

    I have added the results I would like in column C. All of these items either have Mayonnaise, Sliced Ham or Emmentaler Cheese in them.

    On the 'Menu Items' Sheet, all of the said ingredients are highlighted in red, I would like the header of each collumn to appear in the list in column C.

    I hope that helps,

    Danny
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Return Headers from Matches in a List

    OK. I am out for a couple of hours, but now know what you want.

  5. #5
    Registered User
    Join Date
    12-18-2018
    Location
    Phuket, Thailand
    MS-Off Ver
    Windows 11 - MS Office 365
    Posts
    88

    Re: Return Headers from Matches in a List

    Ok thanks pal, looking forward to your message

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Return Headers from Matches in a List

    Try this out:

    =IFERROR(INDEX('Menu Items'!$1:$1,AGGREGATE(15,6,COLUMN('Menu Items'!$A$2:$AR$20)/((ISNUMBER(MATCH('Menu Items'!$A$2:$AR$20,CK_Items,0)))*(COUNTIF($C$3:C3,'Menu Items'!$A$1:$AR$1)=0)),1)),"")

    see sheet.
    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. [SOLVED] Formula to return multiple matches from a reference list
    By stardust_magic in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-17-2021, 01:24 AM
  2. [SOLVED] Return list of column headers based on cell value
    By akshaysudhir in forum Excel General
    Replies: 4
    Last Post: 04-17-2015, 06:10 AM
  3. Can Match return a validation list when it has several matches?
    By ggiorelli in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2013, 07:22 AM
  4. [SOLVED] return a list of everyone who matches
    By hbernhard in forum Excel General
    Replies: 4
    Last Post: 07-09-2012, 01:50 PM
  5. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  6. Replies: 2
    Last Post: 12-14-2010, 02:21 AM
  7. Return a list of unique matches
    By NickySA in forum Excel General
    Replies: 10
    Last Post: 01-24-2007, 04:39 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