remove weekends and holidays data from excel file

1 回表示 (過去 30 日間)
MUKESH KUMAR
MUKESH KUMAR 2019 年 1 月 15 日
回答済み: KSSV 2019 年 1 月 15 日
I had excel file ABC.xlsx, in which sheet A having data from date 01-04-2017 to 31-12-2018 and the sheet2 having the list dates which are holidays( holiday may be fall on weekends). So now I want to create a another excel to seprate the weekdays and weekends/holidays data???
Thanks

採用された回答

KSSV
KSSV 2019 年 1 月 15 日
% Read data
T1 = readtable('ABC.xlsx','sheet',1) ;
T2 = readtable('ABC.xlsx','sheet',2) ;
% Get dates common in both
idx = ismember(T1.(1),T2.(1)) ;
% Pick which are not common
T = T1(~idx,:) ;
% write to a file
writetable(T,'test.xlsx')

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by