HelpMeWithExcelPlease
New Member
- Joined
- Jul 27, 2017
- Messages
- 24
Hi all,
I am trying to write a formula where I can put start with the data in Table 1 and then write a formula in column B of Table 2 to pull in the correct ID numbers from Table 1. Essentially I want to do a VLOOKUP, but I need the VLOOKUP to pull in the data from all rows that meet the criteria, not just the first row.
Table 1
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Field Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]address_number[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]zip_code[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]last_name[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]first_name[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]address_number[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]last_name[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Field Name[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD]address_number[/TD]
[TD]1, 3[/TD]
[/TR]
[TR]
[TD]zip_code[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]last_name[/TD]
[TD]2, 4[/TD]
[/TR]
[TR]
[TD]first_name[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas on what formula I can use to do this?
Thank you in advance for any help or direction!
I am trying to write a formula where I can put start with the data in Table 1 and then write a formula in column B of Table 2 to pull in the correct ID numbers from Table 1. Essentially I want to do a VLOOKUP, but I need the VLOOKUP to pull in the data from all rows that meet the criteria, not just the first row.
Table 1
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Field Name[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]address_number[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]zip_code[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]last_name[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]first_name[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]address_number[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]last_name[/TD]
[/TR]
</tbody>[/TABLE]
Table 2
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Field Name[/TD]
[TD]ID[/TD]
[/TR]
[TR]
[TD]address_number[/TD]
[TD]1, 3[/TD]
[/TR]
[TR]
[TD]zip_code[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]last_name[/TD]
[TD]2, 4[/TD]
[/TR]
[TR]
[TD]first_name[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas on what formula I can use to do this?
Thank you in advance for any help or direction!