Excel errors aren't always a bad thing. Sometimes, it's just because there isn't data in the relevant cells yet, and some other times the error itself is the data ...
Business.com on MSN

Understanding functions in PowerShell

Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.