Skip to content

Instantly share code, notes, and snippets.

@PrzemyslawKlys
Last active April 27, 2018 17:53
Show Gist options
  • Save PrzemyslawKlys/a5e13a588a3d84c735fb2fedfa01f92c to your computer and use it in GitHub Desktop.
Save PrzemyslawKlys/a5e13a588a3d84c735fb2fedfa01f92c to your computer and use it in GitHub Desktop.
#Install-Module ImportExcel
Import-Module ImportExcel
$file = Import-Excel -Path "Book1.xlsx"
$test = @()
foreach ($l in $file) {
$test += "$($l.Name) $($l.Surname)"
}
$test | Export-Excel -Path "Book-Exported.xlsx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment