Skip to content

Instantly share code, notes, and snippets.

@jkavanagh58
Last active August 16, 2018 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkavanagh58/69bb6d5f8d81fa8e53c9d2b4014376cd to your computer and use it in GitHub Desktop.
Save jkavanagh58/69bb6d5f8d81fa8e53c9d2b4014376cd to your computer and use it in GitHub Desktop.
#Requires -Modules ImportExcel
$xlsxPath = "C:\Users\vndtekjxk\OneDrive - Wegmans Food Markets, Inc\Documents\SRM"
$xlsxName = "SRM1.xlsx"
$xlsxFile = Join-Path $xlsxPath -ChildPath $xlsxName
If (Test-Path $xlsxFile) {
$dataSet = Import-Excel -Path $xlsxFile -WorksheetName Sheet1 -DataOnly
$dataSet | Select-Object -Property Group -Unique | sort-object -Property Group
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment