how to add lable into rows

2 ビュー (過去 30 日間)
Tran Trang
Tran Trang 2019 年 7 月 22 日
コメント済み: TADA 2019 年 7 月 22 日
Hi,
I have a excel fie with goods code and goods name.
I have another excel file (the second file) with goods code only and other data columns. Now I want to label each good code with its good name in the second file. Each good code and name will be repeated in 60 rows, i.e. from row 1 to 60 belongs to good A with lable A, from row 61 to 120 belong to good B with label B and it goes on and on until my table has complete row names. The range to set the good name is every 60 rows and it change to another name that is consistent with its good code.
Thank you very much!

採用された回答

TADA
TADA 2019 年 7 月 22 日
You need to use an inner join
t3 = join(otherTable,goods,'key','keyColumnName')
Or if the key column name is different in both tables,
t3 = join(otherTable,goods,'LeftKeys','otherTableGoodsCode','RightKeys','goodsCode')
  2 件のコメント
Tran Trang
Tran Trang 2019 年 7 月 22 日
Thank you. Never thought that it is that simple.
TADA
TADA 2019 年 7 月 22 日
Cheers

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

その他の回答 (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