mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-27 13:43:36 +00:00
37 lines
1.5 KiB
Markdown
37 lines
1.5 KiB
Markdown
PowerShell Import-Excel
|
|
-
|
|
This PowerShell Module wraps the .NET EPPlus DLL (included). Easily integrate reading and writing Excel spreadsheets into PowerShell, without launching Excel in the background. You can also automate the creation of Pivot Tables and Charts.
|
|
|
|
Know Issues
|
|
-
|
|
* Only one pivot table can be added. Investigating how EPPlus saves the target file.
|
|
|
|
What's new
|
|
-
|
|
|
|
#### 4/8/2015
|
|
* Implemented exporting data to **named sheets** via the -WorkSheename parameter.
|
|
|
|
#### Examples
|
|
`gsv | Export-Excel .\test.xlsx -WorkSheetname Services`
|
|
`dir -file | Export-Excel .\test.xlsx -WorkSheetname Files`
|
|
`ps | Export-Excel .\test.xlsx -WorkSheetname Processes -IncludePivotTable -Show -PivotRows Company -PivotData PM`
|
|
|
|
***NOTE*** If the sheet exists when using *-WorkSheetname* parameter, it will be deleted and then added with the new data.
|
|
|
|
Get-Process Exported to Excel
|
|
-
|
|
### Total Physical Memory Grouped By Company
|
|

|
|
|
|
PowerShell Excel EPPlus Video
|
|
-
|
|
Click on this image to watch the short video.
|
|
|
|
[](http://dougfinke.com/powershellvideos/ExportExcel/ExportExcel.html)
|
|
|
|
### Importing data from an Excel spreadsheet
|
|
|
|

|
|
|
|
You can also find EPPLus on [Nuget](https://www.nuget.org/packages/EPPlus/). |