Forum Discussion

wendyThorogood's avatar
wendyThorogood
Copper Contributor
Feb 22, 2020

Match multiple row in one worksheet to single row in another

I am a total newbie to asking questions on this forum so be kind if I've got it wrong.

I have two csv files that have only two or three columns that I need to combine into one with thousands of rows. They have one column in common (Name ID) but on one sheet there are multiple entries for that column and the other has only one. I need them to match up by line.

e.g.

sheet a                                                            sheet b

Name        Name ID                                     Name ID     Chip ID     Image ID

Martha      1                                                 1                         32              360

Emma        2                                                 1                         10              439

Louise        3                                                 1                         45              280

Claire         4                                                 2                         12              260

Melanie     5                                                 2                         86              254

 

I need to get to:-

 

Name        Name ID                                     Name ID     Chip ID     Image ID

Martha      1                                                 1                         32              360

Martha      1                                                 1                         10              439

Martha      1                                                 1                         45              280

Emma        2                                                 2                         12              260

Emma        2                                                 2                         86              254

etc.

 

Any ideas as to how I can do that?

Resources