reading an combining excel files
Show older comments
Hi everyone,
I have a folder with excel files with I would all like to load in and combine. Is this a possibility? I want to prevent loading them in one-by-one and then combining them one-by-one since it contains around a 100 excel files with all just one row of heading and one row of data.
Accepted Answer
More Answers (1)
Vineeta Shukla
on 6 Feb 2023
Edited: Vineeta Shukla
on 6 Feb 2023
0 votes
Hi,
From my understanding, you can use the function spreadsheetDatastore to manage and import the data when you have data stored across multiple spreadsheet files.
Here is an example from documentation:
https://www.mathworks.com/help/matlab/import_export/read-a-sequence-of-spreadsheet-files.html
Here is a link to the documentation to understand more about spreadsheetDatastore: https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.spreadsheetdatastore.html
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!