title: display number in a specific format in excel
body: <p>I am writing to excel using a list.Each row to be written to the excel will be stored as separate rows in the list.
  The list contains numbers in specific format for certain columns.
  Is there a way to identify the format of the number and apply cellStyle.Currently I am applying DataType as Number in case of numeric values.</p>
  
  <pre><code>if (Double.TryParse(value.Replace('.', ','), out output))
  {
      value = value.Contains(',') ? value.Replace(",", "") : value;
      cell.CellValue = new CellValue(value.ToString());
      cell.DataType = new EnumValue&lt;CellValues&gt;(CellValues.Number);
  
  }
  else
  {
      cell.DataType = CellValues.InlineString;
      cell.InlineString = new InlineString() { Text = new Text(outfile.DataRow[rowCnt].ToString()) };
  }
  </code></pre>