I have two excel sheets that have been exported from MySQL, with relational data in them, and I need to replace the reference ID's with the actual data from the relative column.
For example, in one table:
+----------------------------------------+| ID | Name | ForeignKey1 | ForeignKey2 |+----------------------------------------+| 1 | Bob | 1 | 2 || 2 | Dave | 2 | 1 || 3 | Mary | 3 | 4 || 4 | Jane | 4 | 1 || etc........
Then in the other table, that the ForeignKey
s are referencing:
+---------------------+| ID | Name |+---------------------+| 1 | Banana || 2 | Apple || 3 | Cat || 4 | Dog || etc.......
Is there an easy way to replace the Foreign key with the relative data in excel, so that my data looks like this?
+----------------------------------------+| ID | Name | ForeignKey1 | ForeignKey2 |+----------------------------------------+| 1 | Bob | Banana | Apple || 2 | Dave | Apple | Banana || 3 | Mary | Cat | Dog || 4 | Jane | Dog | Banana || etc........