Finished function that edits excel file