OK, long shot, but... might be worth it...
"We found a problem with some content... " ... "The workbook cannot be opened or repaired by Microsoft Excel because it is corrupt." Sometimes flashes up 10-15 repair attempts before failing.
I have no idea what Excel thinks is corrupt. There are no macros. The content is primarily one pretty big table that goes out to lookups from other tables (lots of XLOOKUP, INDEX/MATCH) to bring back values and do some mild maths. Quite a lot of error-catching, IFERROR and suchlike to limit the inevitably divisions by zero. A couple of pivot tables so I can do quick error checking but not much.
What's weird is...
The files are, by my standards, BIG. As xlsx they are about 500Mb, as xlsb about 330Mb. The big table is about 500K lines deep (but not very wide.) This problem began to appear a few weeks back and I had a couple of workarounds. Clearing the Excel cache seemed to work but now doesn't. Working on the logic while the big table was empty and then dropping in the data, saving an xlsb, xlsx version, that worked.
I'm in trouble now though because the ~50Mb "empty" version is throwing the same error so my workaround isn't working.
The files can be opened on Apple Macs, and they can be read by Tableau. So as I say, I don't think they're actually corrupt. But I don't have a clue how to proceed... of course, I have a few older versions, and they open, but my whole working method is kinda unreliable now.
- Any thoughts what might be the problem ? Functions to avoid, things to look out for ?
- The empty version seems kinda bloated to me. There's really only a few tables in it; less than 12, none of them are deeper than 1,000 lines. Is there hidden cruft I should be trying to trim off ?
- Best of all - how to open/recover my files and have a working method that... works...
Yep, we're trying to move the whole thing to a Python environment sometime. Great, but I'm a subject matter person, not a coding/IT person, and I need to progress the job.
Thanks in advance...
Y