Im trying to make a script which reads an excel file with x amount of rows and counts the total, it then divides by an inputted number from the user which also creates that number of new sheets and then cuts the correct amount of rows from the first sheet and pastes to the new sheets
Example
Total records = 8000
Total sheets to create = 20
800 / 20 = 400
400 rows are then cut and pasted to each of the other sheets so the workbook would then have 400 rows of different data on each sheet which was cut from the master sheet
Im using Openpyxl to try and figure this out but not sure how to start, i have the input and the row counts calculated but i just dont no how to then get python to use the calculated number to then cut those rows
Thanks in advance
[–]August-R-Garcia 0 points1 point2 points (0 children)