The incredible story of how a spreadsheet error led to global budget cuts.