Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How can I check whether a a row exists containing two cells each equal to a different given value?

$
0
0

I am using some data created by someone else in Google Sheets. I have it in my document in its original structure in a sheet called "Data", which is formatted as follows:

AB
1NameCategory
2Item 1Category A
3Item 1Category B
4Item 1Category C
5Item 2Category B
6Item 2Category D

I am creating another sheet that has a category in each row and an item in each column:

ABC
1Item 1Item 2
2Category AX
3Category BXX
4Category CX
5Category DX

What I'm trying to write is a formula for each of the cells in B2..C6 that would output the letter "X" if a matching row exists in the Data sheet such that both its name and category match. The above is an example of test data and expected output data.

There may be any number of rows, any number of items, and any number of categories in the Data sheet. The second sheet may have any number of rows and columns, one column per item and one row per category.

I am not at all certain where to begin looking for how to solve this, including what I should even search for.

What would be a formula that achieves the desired output?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>