**XCEL FILE ATTACHED**
Question: If I have a workbook with 2 tables; 1 has the data that I want to search and 1 is empty and where I would like the "searched" values output, what lookup formula would I need to use?.
THIS IS THE TABLE I WANT TO SEARCH:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Companies[/TD]
[TD]State Locations[/TD]
[/TR]
[TR]
[TD]Company 1[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]TX; CA; AZ; IL; VA; OH; MI; MX; Canada[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 2[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]IL; MA; PR[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 3[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]AL; AK ; AZ; AR; CA; CO; CT; DC; DE; FL; GA; HI; ID; IL; IN; IA; KS; KY; LA; ME; MD; MA; MI; MN; MS; MO; MT; NE; NV; NH; NJ; NM; NY; NC; ND; OH; OK; OR; PA; RI; SC; SD; TN; TX; UT; VT; VA; WA; WV; WI; WY[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 4[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]CA; TX; PA; NJ; Italy[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
THIS IS THE TABLE I WANT TO OUTPUT TO:
[TABLE="width: 500"]
<tbody>[TR]
[TD]MA[/TD]
[TD]CA[/TD]
[TD]NY[/TD]
[TD]NJ[/TD]
[/TR]
[TR]
[TD]company name with with MA site would go here[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]...and so on[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Question: If I have a workbook with 2 tables; 1 has the data that I want to search and 1 is empty and where I would like the "searched" values output, what lookup formula would I need to use?.
- The attached file is a list of companies in one column and the states in which they have locations in the adjacent column
- Each company has multiple states where they have locations (For each company, these are separated by semi-colons For Ex: TX; CA; MA; NY)
- I want to search, for ex, MA and have it output all the different companies that have MA locations
THIS IS THE TABLE I WANT TO SEARCH:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Companies[/TD]
[TD]State Locations[/TD]
[/TR]
[TR]
[TD]Company 1[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]TX; CA; AZ; IL; VA; OH; MI; MX; Canada[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 2[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]IL; MA; PR[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 3[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]AL; AK ; AZ; AR; CA; CO; CT; DC; DE; FL; GA; HI; ID; IL; IN; IA; KS; KY; LA; ME; MD; MA; MI; MN; MS; MO; MT; NE; NV; NH; NJ; NM; NY; NC; ND; OH; OK; OR; PA; RI; SC; SD; TN; TX; UT; VT; VA; WA; WV; WI; WY[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Company 4[/TD]
[TD][TABLE="width: 313"]
<tbody>[TR]
[TD="class: xl67, width: 313"]CA; TX; PA; NJ; Italy[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
THIS IS THE TABLE I WANT TO OUTPUT TO:
[TABLE="width: 500"]
<tbody>[TR]
[TD]MA[/TD]
[TD]CA[/TD]
[TD]NY[/TD]
[TD]NJ[/TD]
[/TR]
[TR]
[TD]company name with with MA site would go here[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with MA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]company name with with CA site would go here[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]...and so on[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]...and so on[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]