I have a table with an ever expanding number of rows but a static number of columns. Within the table (called “FamilyTable” in the example worksheet) there is an “Effective Name” in each row. Next to the Effective Name are a variable number of “Members” of each name. The number of members can range from 1 to 18. The members will mostly be strings but some may be numbers. Each Member cell will only contain 1 member.
I need a user-defined function that accepts as input a string or number and then outputs the Effective Name of ALL the rows that the input string/number appears in. Previously, I was able to create a formula that could find the effective name for the last row that a member appeared in* (although I’m not sure why it returned the last name instead of the first name). But, now that members can appear in multiple rows, my formula is no longer adequate.
Ideally, if a member appeared in the same row multiple times then the UDF would be able to only show that row’s effective name once. If that greatly complicates the UDF, however, I can probably find a way to limit the users’ abilities to repeat a member in a given row.
The “Required Output” sheet shows examples of various inputs and outputs. I’ve also included my formula which is now inadequate.
Any help that you can provide would be greatly appreciated. Please tell me if anything requires additional explanation.
Thank you.
*I modified a formula that I found on the internet but cannot seem to find again.
Bookmarks