string format = excel.WorkbookPart.WorkbookStylesPart.Stylesheet.NumberingFormats.Elements<NumberingFormat>() .Where(i => i.NumberFormatId.ToString() == cellFormat.NumberFormatId.ToString()) .First().FormatCode;