The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"[SOLVED] Reading multiple worksheets from a single Excel file"
dominiciui
Member Posts: 2 Contributor I
Hello All -
How do you load multiple worksheets from a single Excel spreadsheet file whereby the worksheets' attributes differ from each other.
What I found was:
'Loop Files' - ['Read Excel'] (as the nested operator) --> 'Append'
The 'Loop Files' provides me with a directory - do I just move the Excel spreadsheet to it's own folder even though it's a single file?
The 'Read Excel' provides with the import wizard - which only allows me to import one sheet.
I appreciate your help!
Dominic
How do you load multiple worksheets from a single Excel spreadsheet file whereby the worksheets' attributes differ from each other.
What I found was:
'Loop Files' - ['Read Excel'] (as the nested operator) --> 'Append'
The 'Loop Files' provides me with a directory - do I just move the Excel spreadsheet to it's own folder even though it's a single file?
The 'Read Excel' provides with the import wizard - which only allows me to import one sheet.
I appreciate your help!
Dominic
Tagged:
0
Answers
You could use the Loop operator containing the Read Excel operator. Define an iteration macro in the Loop operator and use it as the sheet number for the Read Excel operator. One gotcha will be the imported cell range which may need to be different for different sheets.
Here's a simple example regards
Andrew
Thank you very much for your help and code! Problem solved.
Best,
Dominic