CSV Data upload How to relate fields

I have a list of 15 fields in a CSV File that I am importing to my database. 4 fields will be related to records of other datatypes. How can I relate the data to the imported records of another datatype record. Will I have to copy the unique ID and paste it into each uploaded field for each record in my excel file or is there a better way?

Thanks