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:
| A | B | |
|---|---|---|
| 1 | Name | Category |
| 2 | Item 1 | Category A |
| 3 | Item 1 | Category B |
| 4 | Item 1 | Category C |
| 5 | Item 2 | Category B |
| 6 | Item 2 | Category D |
I am creating another sheet that has a category in each row and an item in each column:
| A | B | C | |
|---|---|---|---|
| 1 | Item 1 | Item 2 | |
| 2 | Category A | X | |
| 3 | Category B | X | X |
| 4 | Category C | X | |
| 5 | Category D | X |
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?