Overview of Project: I have many different tables that all have different columns in them. Some columns may occur on different tables. All the data is "linked" and the only way to do that is to find a common occurance. For example "table 1" may have date member joined, name of member, and member ID. "Table 2" may have member name and hair color. If I want to see all of these fields Date, Name, Hair Color I will need to use both these tables.The data is organized as such:
Table 1_______Table 2_______ Table 3_______ Table 4
Date _________Name_________ Hair Color_____ Name
Name ________Hair Color______ Shoe Size_____ Height
Member ID____________________________________
So my current question is that I want to be able to search for a value and have excel return ALL columns headers that have this value. For example: search value "Name", excel returns "Table 1, Table 2". Currently I am using the code (headers on A2:BD2 and values on A3:BD118) =INDEX(A2:BD2,MAX(INDEX((A3:BD118=BF10)*COLUMN(A3:BD118),)) ). This works great except that it only returns the last column header that the value was found in. I want it to return EVERY column the value is found in.
.....
Eventually I want to be able to type in 2 or 3 values and have excel tell me the MINIMUM tables needed to have all these information but I think this is the first step. Eventually I would want to be able to say that I want "Name", "Date", "Hair Color" and have excel return "Table 1, Table 2" (because these are the two tables needed). NOTE: I don't want it to return Table 1, Table 2, Table 4 because I want the minimum amount of tables necessary.
I know that was probably very confusing. Let me know if I can clear this up. Please help. Thanks
Bookmarks