private void SetCellValue(string cellAddress, object value) { worksheet.SetCellValue(cellAddress, value); Cell cell = worksheet.GetCell(cellAddress); SetStyleIndexByCellFormatOption(cell, value, CellFormatOption); }