deal with data and create an excel sheet