+ Reply to Thread
Results 1 to 4 of 4

Matching A Value In One Column With Values In Several Columns

  1. #1
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Question Matching A Value In One Column With Values In Several Columns

    Hello,
    I need a formula that matches the value in one column by searching through the values of multiple columns with the result being the column heading of the matching column.

    EXAMPLE
    1 2 3 4 5 6 Matching Column Result Heading #
    Aqua Red Gold Ivory Purple Yellow Aqua 1
    Aqua Red Gold Ivory Purple Yellow Aqua 1
    Aqua Red Gold Ivory Purple Yellow Aqua 1
    Aqua Red Gold Ivory Purple Yellow Aqua 1
    Red Aqua Ivory Gold Purple Yellow Above All 0
    Red Aqua Ivory Gold Purple Yellow Above All 0
    Red Aqua Ivory Gold Purple Yellow Above All 0
    Red Aqua Ivory Gold Purple Yellow Above All 0
    Red Aqua Ivory Purple Yellow Gold Ivory 3
    Red Aqua Ivory Purple Yellow Gold Ivory 3
    Red Aqua Yellow Ivory Purple Gold Yellow 3
    Red Aqua Yellow Ivory Purple Gold Yellow 3
    Red Aqua Yellow Ivory Purple Gold Yellow 3

    The formula resides in Result Heading# column and is the matching the value in the Matching Column with one of the columns numbered 1 -6 and the result is the heading of the matching column.

    If the Matching Column equals "Above All" the result is zero [0].

    Row 1 Matching Column equal "Aqua" column 1 equals "Aqua", so the result is 1 the columns heading for "Aqua".


    Please see spreadsheet for a better understanding. Examples of what the value should be have been manually entered.

    Any and all help you could provide for any of the formulas would be greatly appreciated. Thank you.
    Attached Files Attached Files
    Last edited by artiststevens; 01-21-2015 at 05:34 AM.

  2. #2
    Registered User
    Join Date
    01-23-2014
    Location
    Romania
    MS-Off Ver
    Excel 2016
    Posts
    54

    Re: Matching A Value In One Column With Values In Several Columns

    =iferror(match(g3,a3:f3,0),0)

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

    Re: Matching A Value In One Column With Values In Several Columns

    Deleted by nfl sales
    Samba

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

  4. #4
    Forum Contributor
    Join Date
    10-05-2010
    Location
    CA
    MS-Off Ver
    Excel 365
    Posts
    539

    Re: Matching A Value In One Column With Values In Several Columns

    Thank you very much. That's exactly what I needed.

+ 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. Matching values in two columns - one column has duplicates
    By morganz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-08-2015, 10:38 AM
  2. Replies: 4
    Last Post: 03-23-2014, 09:40 AM
  3. Replies: 2
    Last Post: 11-14-2013, 01:44 PM
  4. Replies: 2
    Last Post: 12-30-2011, 07:30 PM
  5. Replies: 8
    Last Post: 12-25-2011, 08:39 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