Generates excel files according to the input.