Files
ImportExcel/FAQ/How to Read an Existing Excel File.md
Davis Henckel c56b2cd33a Add first 2 images
Images display debugger and contents of excel file.
2021-11-21 16:56:52 -08:00

15 lines
567 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
![alt text](https://github.com/DavisHenckel/ImportExcel/blob/FAQ_Docs/images/FAQ_Images/ExcelFileContents.png)
After Loading this data into ```$ExcelFile``` the data is stored like:
![alt text](https://github.com/DavisHenckel/ImportExcel/blob/FAQ_Docs/images/FAQ_Images/ExcelFileDebugImg.jpg)