+ Reply to Thread
Results 1 to 9 of 9

How to identify in a matrix if an X is listed in two columns of data

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    How to identify in a matrix if an X is listed in two columns of data

    I have a table like the below:

    Grocery Item Store 1 Store 2 Store 3 Store 4 Vendor 1 Vendor 2 Vendor 3 Vendor 4
    Apple X X X X
    Orange X X X X
    Pear X X X
    Banana X X X X

    And want to create a formula that will tell me if a Vendor has any fruits in each store. This would populate the table below with an X if true (do not need to know which fruit, just if it provides any fruit to that store).

    Store 1 Store 2 Store 3 Store 4
    Vendor 1
    Vendor 2
    Vendor 3
    Vendor 4

    For example, Vendor 1 in Stores 1, 2, and 3 = Yes, but Vendor 1 in Store 4 = No. Thanks for any help! I've attached an XLS of the above as well if that helps.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,004

    Re: How to identify in a matrix if an X is listed in two columns of data

    This is example how NOT set table

    Why vendor 1 has fruit in Store 3?
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: How to identify in a matrix if an X is listed in two columns of data

    Sorry, I tried to make the table simpler to understand for this purpose. In my real spreadsheet, the Grocery Item is a communication topic, the Stores are communication vehicle (email, poster), and the Vendor is the audience (managers, executives, employees). I am trying to show which communication vehicles will go to which audiences. I've updated the example file to be more accurate if that helps.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,672

    Re: How to identify in a matrix if an X is listed in two columns of data

    Still don't understand the table!

    Perhaps manually fill in the table and then it may be more apparent.

  5. #5
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: How to identify in a matrix if an X is listed in two columns of data

    Added a new table with the matrix filled in.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,817

    Re: How to identify in a matrix if an X is listed in two columns of data

    I imagine that you are looking for a 'single formula' solution and wish you success with getting that, however this might provide a fall back. This solution uses a number of helper columns (J:Y) which could be moved and/or hidden for aesthetic purposes. The first four rows, which match vehicle to audience, are populated using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The fifth row, which tabulates the results, is populated using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The table is populated using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me 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.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: How to identify in a matrix if an X is listed in two columns of data

    Try this in B17 fill down and across.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    By the way there is a trailing space in A17 "Executives". This formula won't work in that row until it is deleted.
    Dave

  8. #8
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: How to identify in a matrix if an X is listed in two columns of data

    Dave, this is exactly what I was looking for! Thank you! I knew it had to be related to Match and Index, but am not comfortable with those functions yet. I'm good to go now though, and have some good reading to learn-up for the future. :-)

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: How to identify in a matrix if an X is listed in two columns of data

    You are welcome. Thank you for the feedback.

    Yes. INDEX / MATCH is a powerful, and versatile combination. Glad to hear you plan to study up.

+ 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. Replies: 4
    Last Post: 03-31-2015, 11:40 AM
  2. Replies: 10
    Last Post: 03-27-2014, 06:05 PM
  3. Matrix: Identify cell content in column for a row if matrix content true
    By deuy2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2014, 11:52 AM
  4. Replies: 2
    Last Post: 02-11-2014, 05:05 AM
  5. Identify the 2 days before and after listed holidays
    By joeljoel in forum Excel General
    Replies: 4
    Last Post: 11-23-2010, 10:56 AM
  6. [SOLVED] identify numbers which are listed in two columns.
    By the_kane in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2005, 03:06 AM
  7. [SOLVED] Copy Excel data content listed in 3 columns into a single column
    By mooorrona in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2005, 01:06 AM

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