I have two sets of data in .csv format which share a field called sku
. The second one has additional columns which need to be added to the first, but they have different sets of data, only some of which overlaps.
The only data that needs to be merged is for sku
s that already appear in the first. For example:
File 1
sku,foo
a,hello
b,world
File 2
sku,bar
a,0
b,1
c,2
d,3
would result in:
sku,foo,bar
a,hello,0
b,world,1
Is this possible?
Open the document that contains the cell ranges to be consolidated. Choose Data > Consolidate to open the Consolidate dialog. If the Source data range list contains named ranges, you can select a source cell range to consolidate with other areas. If the source range is not named, click in the field to the right.
In OpenOffice:
Copy paste your two dataset into the same workbook in two different worksheet.
use the function vlookup (same as in Excel) to merge your two data set in the same worksheet. The syntax is =VLOOKUP( valueToSearchFor ; tableToSearchIn ; columnIdentifier ; isTableSorted? ) (source)
Then you can use the concatenate function CONCATENATE(text1; text2; ... text30) to merge your content into a single cell. (source)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With