You would be far better off using an LLM to replace a complex spreadsheet with a Python script and SQLite.