Code updated for create excel sheet and updated the values