What have you tried so far ? where are you stuck?

I assume the spreadsheet is a CSV?

foreach($line in (import-csv "c:\folder\file.csv")){
    #do something
}

if it is in excel format (xlsx) you might want to convert it, or look into Doug Finke’s ImportExcel Module

If you post code, please use the ‘Insert Code’ button. Please and thank you!

codebutton_small.png

1 Spice up