Error check for excel file