The below script reads the sheet names of an Excel document....
How could I improve it so it could extract all the contents of column B (starting from row 5 - so row
There is the possibility of making something really more cool!
# Powershell $xl = new-object -ComObject excell.application $doc=$xl.workbooks.open("Filepath") $doc.Sheets.item(1).rows | % { ($_.value2 | Select-Object -first 3 | Select-Object -last 2) -join "," }