You can import grades into Moodle from a CSV. You can create your spreadsheet in Excel and then select "File" and "Save As" and save the file as a Comma Separated Values (.csv). Files must be saved as a CSV in order to import the grades directly into Moodle.