Improve compatibility of spreadsheet calculation and import.