Finished Excel code