Openpyxl silently drops cached formula values when you edit an unrelated cell A test by an unnamed developer found that openpyxl, a Python library for reading and writing Excel files, silently drops cached formula values when editing an unrelated cell, while Kookerella.FsOpenXmlDsl preserves them. In the test, appending a row below a total cell left the formula intact but emptied the cached value, causing data_only=True readers like pandas.read_excel to return None instead of 450. The bug occurs because openpyxl's Cell class has only one value slot, so loading a workbook in formula mode discards the cached number. The Silent Bug: How an AI Agent Can Quietly Blank Out Your Excel Formulas Here’s a bug that doesn’t look like a bug. Ask an AI agent to add one line to an existing report. It does. The file opens fine in Excel - Excel recalculates every formula the moment it opens a workbook, so nothing looks wrong. But hand that same file to a second automated system - a PDF export, a dashboard pipeline, another script reading it with pandas - and a number that used to be there is now blank, or zero, or None . Nobody touched that cell. I ran a real, minimal test to find out exactly when and why this happens. The setup A tiny report: three line items and a Total cell holding =SUM B2:B4 , saved with its correct cached value 450 already baked in - exactly what a real .xlsx looks like after someone has opened and saved it in Excel at least once. Item Amount Widgets 100 Gadgets 150 Gizmos 200 Total =SUM B2:B4 cached: 450 The raw XML for that cell confirms it, before anything is touched: