CT Witter
MrExcel MVP
- Joined
- Jul 7, 2002
- Messages
- 1,212
I have 2 tables in a query, Table1 has data, Table2 has a match field for lookup.
In table1 I would like to match field1 and field2 to table2 field1 and return field test in 2 different fields.
Here is table1
ID Field1 Field2
1 KBFI KJAC
2 KPFN KJAX
Here is table2
ID Field1 Test
2 KPBI Southern
76 KJAC Northwest Mountain
99 KPFN Southern
39 KJAX Southern
What I want as a result looks like:
ID Field1 Field2 Field3 Field4
1 KBFI KJAC Southern Northwest Mountain
2 KPFN KJAX Southern Southern
How do I accomplish this?
Thanks,
CT
In table1 I would like to match field1 and field2 to table2 field1 and return field test in 2 different fields.
Here is table1
ID Field1 Field2
1 KBFI KJAC
2 KPFN KJAX
Here is table2
ID Field1 Test
2 KPBI Southern
76 KJAC Northwest Mountain
99 KPFN Southern
39 KJAX Southern
What I want as a result looks like:
ID Field1 Field2 Field3 Field4
1 KBFI KJAC Southern Northwest Mountain
2 KPFN KJAX Southern Southern
How do I accomplish this?
Thanks,
CT