フィルターのクリア

How to merge two excel files based on common column ?

8 ビュー (過去 30 日間)
Namrata Goswami
Namrata Goswami 2020 年 11 月 17 日
コメント済み: Namrata Goswami 2020 年 11 月 18 日
I have two excel sheets that I need to combine into one.
For example
File1:
ID Name
1 abc
2 xyz
3 mno
File2:
ID Job
1 teacher
2 singer
3 driver
Once I import these two excel files, I want to combine them into one, based on the common column "ID"
Output file:
ID Name Job
1 abc teacher
2 xyz singer
3 mno driver

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 17 日
See innerjoin(): https://www.mathworks.com/help/matlab/ref/innerjoin.html or outerjoin(): https://www.mathworks.com/help/matlab/ref/outerjoin.html. Use whichever is suited for your purpose.
  1 件のコメント
Namrata Goswami
Namrata Goswami 2020 年 11 月 18 日
Thank you. This helped!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by