Files
ImportExcel/FAQ/How to Read an Existing Excel File.md
2021-11-26 06:31:53 -08:00

15 lines
471 B
Markdown

# How to Read an existing Excel File
```powershell
Import-Module ImportExcel
#Loads the Excel file into a is a custom PS Object
$ExcelFile = Import-Excel "C:\Test\file.xlsx" -WorksheetName "Sheet1"
```
## Visual of Data Structure
The File C:\Test\file.xlsx contains
![ExcelFileContents](/images/FAQ_Images/ExcelFileContents.png)
After Loading this data into ```$ExcelFile``` the data is stored like:
![ExcelFileDebugImg](/images/FAQ_Images/ExcelFileDebugImg.jpg)