hello,
I have a short question - i have two excel files with 2 tables and i want to merge them taking into consideration the following:
- i have a column with an unique ID in the first table
- the second tables contains more IDs than the first one
- if the ID from the first table is found in the second one, i want to bring on a different column some information from the second one.
What i did up to this point:
- i created 2 data tables for both excel files.
- i did a for each for both of them (one inside the other) and created an if condition (if row.item(0).tostring = line.item(0).to string) than a boolean variables receives true.
- created a second if condition that if boolean is true it should write the information from the first data table and the info from the second data table that i am interested.
On the last point i have the problem, because i don’t think i am writing the code correctly. as a mention i want to write the information in a new data table.
A suggestion in the right direction, would help a lot.
Thank you,
Cristi