Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Sucking out data from excel for use can't be this convoluted, can it?

$
0
0

So I am messing with Import-Excel in order to suck out the relevant info from HR's spreadsheet for new hires so I can (eventually) automate the new user creation process.

The spreadsheet comes in a sort of checklist format where column A has all the titles for the information, column B is stretched and contains the actual information I would need, the other important columns are E and F for initial and date which I don't think matter quite yet.

The only content I need is the first 5 rows of column B. I tried playing with the Import-Excel module but didn't get very far, it seemed to only display everything in column A and only (highlightable blank spaces for column B.

Then I found an example where you import the excel spreadsheet , then convert it to CSV, then import the CSV like so,

Powershell
Import-Excel"C:\Users\myDIR\Documents\...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>