Import excel, Compare Vectors, and output results including strings

1 回表示 (過去 30 日間)
Zekeftw
Zekeftw 2016 年 3 月 31 日
コメント済み: Jeevan Joishi 2016 年 4 月 6 日
Hi,
I'm trying to import two excel spreadsheets (attached) then compare the "Amount" column on Expenses.xlsx to Total_Fee, Fee1, and Fee2 on database.xlsx.
Finally, I would like to output all the values (including the corresponding strings) that are missing from columns Total_Fee, Fee1, and Fee2.
For example, the output would be
I'm having trouble reading the excel file with [num,txt,raw] = xlsread(_). I'm getting a lot of NaN values. I was thinking of using something like out = Amount(ismember(Amount,[Total_Fee;Fee1;Fee2]) == 0) to help me do the comparison and output but I'm now sure what syntax to use to tell it what columns to look it.
Thank you.
  1 件のコメント
Jeevan Joishi
Jeevan Joishi 2016 年 4 月 6 日

Compare 'Amount' to 'Total_Fee,Fee1,Fee2'? Can you elaborate on what exactly do you mean by 'compare'

Is it

Amount = Total_Fee + Fee1 + Fee2

Or something else?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by