Output contents of Excel file where one or more columns are NOT empty.
Sample data:
Want to output just the Company, City, State and first Product
My lame attempt to code:
$File = 'C:\test1.xlsx'
$data = Import-Excel -Path $File | Where-Object "Company" -ne " "
$data
Output is same as input, i.e. all lines appear