First of, sorry for the title, I have no clue what to search for or how to name the question.
I got an example sheet which might already explain everything: https://docs.google.com/spreadsheets/d/1pRhtNaw5mk464lK7QpczFY39taqCFPaiEUUcz1il52E/edit?usp=sharing
In Words:
I have an attendance sheet with each row being a day with the first few (fixed amount) columns being some informations and after a fixed amount of columns every next column only contains a name of a person who attended the event.
This attendance sheet is filled automatically via Google App Script and can be modified.
In another Sheet I have all Persons listed with their Name but additionally also their Nicknames.
My Goal: I want a 1 / 0 Matrix (single row) for each person if his name or one of the nicknames attended.
So If Person A attended Event 1 and Event 3, but with different names (Person A and Nickname A) I want 1 0 1
.