Write a script.
I know there are decent api for excel and files.
I dont know the api or recommended scripting language. This would be a good case for chatgpt or equivalent type task. Enough to get started.
edit:
I asked chatgpt, it recommended python and 'pandas' for interacting with excel
python
import pandas as pd
# Load the data from an Excel file, assuming headers are in the first row by default
data = pd.read_excel('path/to/your/file.xlsx')
# Define the number of records per chunk
chunk_size = 500
# Split the data into chunks and write each chunk to a new Excel file
for i in range(0, len(data), chunk_size):
# Extract the chunk of data based on the current index range
chunk = data.iloc[i:i + chunk_size]
# Write the chunk to a new Excel file, including headers as column names
chunk.to_excel(f'output_{i // chunk_size + 1}.xlsx', index=False)
I asked about the first 'row', and it claims panda includes that in each chunk, but I don't know about that.
It's at least a place to start to iterate from. Would need to iterate further with real code/tests.