I currently have two .csv files that look like this:
File 1:
| Attempt | Result |
|---|---|
| Intervention 1 | B |
| Intervention 2 | H |
and File 2:
| Name | Outcome 1 | Outcome 2 | Outcome 3 |
|---|---|---|---|
| Sample 1 | A | B | C |
| Sample 2 | D | E | F |
| Sample 3 | G | H | I |
I would like to merge and align the two .csvs such that the result each row of File 1 is aligned by its "result" cell, against any of the three "outcome" columns in File 2, leaving blanks or "NA"s if there are no similarities.
Ideally, would look like this:
| Attempt | Result | Name | Outcome 1 | Outcome 2 | Outcome 3 |
|---|---|---|---|---|---|
| Intervention 1 | B | Sample 1 | A | B | C |
| Sample 2 | D | E | F | ||
| Intervention 2 | H | Sample 3 | G | H | I |
I've looked and only found answers when merging two .csv files with one common column. Any help would be very appreciated.