{"id":1687,"date":"2023-03-09T22:00:00","date_gmt":"2023-03-09T21:00:00","guid":{"rendered":"https:\/\/demo.sidekick.be\/itenium\/create-xlsx-excel-with-epplus-csharp\/"},"modified":"2025-11-28T13:31:47","modified_gmt":"2025-11-28T12:31:47","slug":"create-xlsx-excel-with-epplus-csharp","status":"publish","type":"post","link":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/","title":{"rendered":"Create Excels with C# and EPPlus: A tutorial"},"content":{"rendered":"<p><\/p>\n<hr \/>\n<p><\/p>\n<h1 id=\"thats-fine\">That\u2019s fine!<\/h1>\n<p>Quick tutorial about creating xlsx Excels with C# and the <a href=\"https:\/\/www.nuget.org\/packages\/EPPlus\">EPPlus nuget package<\/a>.<\/p>\n<blockquote>\n<p>EPPlus Excel addresses are not zero based: The first column is column 1!<\/p>\n<\/blockquote>\n<p>Also, before writing any loops, you might want to check out the <code>LoadFromXXX<\/code> methods. They are explained in depth in part 3 Import.<\/p>\n<p>The blog posts will only cover the most important functionality. <a href=\"https:\/\/github.com\/itenium-be\/EPPlusTutorial\">More extensive code examples<\/a> can be found in the GitHub project.<\/p>\n<h1 id=\"quickstart\">Quickstart<\/h1>\n<h2 id=\"without-license\">Without license<\/h2>\n<p><a href=\"https:\/\/github.com\/JanKallman\/EPPlus\" class=\"github\"><img decoding=\"async\" src=\"https:\/\/img.shields.io\/github\/stars\/JanKallman\/EPPlus.svg?style=social&amp;label=Star\" \/><\/a><a href=\"https:\/\/github.com\/JanKallman\/EPPlus\">JanKallman\/EPPlus<\/a>: The free one<\/p>\n<pre><code class=\"language-sh\">Install-Package EPPlus -Version 4.5.3.3\n<\/code><\/pre>\n<h2 id=\"with-license\">With license<\/h2>\n<p><a href=\"https:\/\/github.com\/EPPlusSoftware\/EPPlus\" class=\"github\"><img decoding=\"async\" src=\"https:\/\/img.shields.io\/github\/stars\/EPPlusSoftware\/EPPlus.svg?style=social&amp;label=Star\" \/><\/a><a href=\"https:\/\/github.com\/EPPlusSoftware\/EPPlus\">EPPlusSoftware\/EPPlus<\/a>: The not so free one<\/p>\n<pre><code class=\"language-sh\">Install-Package EPPlus\n<\/code><\/pre>\n<p><strong>\u2026and ACTIVATE!<\/strong><\/p>\n<pre><code class=\"language-cs\">ExcelPackage.LicenseContext = LicenseContext.Commercial;\nExcelPackage.LicenseContext = LicenseContext.NonCommercial;\n<\/code><\/pre>\n<p>Key stored in <code>EPPlus:ExcelPackage.LicenseContext<\/code>.<\/p>\n<h2 id=\"usage\">Usage<\/h2>\n<pre><code class=\"language-c#\">using OfficeOpenXml;\n\nusing (var package = new ExcelPackage())\n{\n\tExcelWorksheet sheet = package.Workbook.Worksheets.Add(\"MySheet\");\n\n\t\/\/ Setting &amp; getting values\n\tExcelRange firstCell = sheet.Cells[1, 1];\n\tfirstCell.Value = \"will it work?\";\n\tsheet.Cells[\"A2\"].Formula = \"CONCATENATE(A1,\" ... Of course it will!\")\";\n\tAssert.That(firstCell.Text, Is.EqualTo(\"will it work?\"));\n\n\t\/\/ Numbers\n\tvar moneyCell = sheet.Cells[\"A3\"];\n\tmoneyCell.Style.Numberformat.Format = \"$#,##0.00\";\n\tmoneyCell.Value = 15.25M;\n\n\t\/\/ Easily write any Enumerable to a sheet\n\t\/\/ In this case: All Excel functions implemented by EPPlus\n\tvar funcs = package.Workbook.FormulaParserManager.GetImplementedFunctions()\n\t\t.Select(x =&gt; new {FunctionName = x.Key, TypeName = x.Value.GetType().FullName});\n\tsheet.Cells[\"A4\"].LoadFromCollection(funcs, true);\n\n\t\/\/ Styling cells\n\tvar someCells = sheet.Cells[\"A1,A4:B4\"];\n\tsomeCells.Style.Font.Bold = true;\n\tsomeCells.Style.Font.Color.SetColor(Color.Ivory);\n\tsomeCells.Style.Fill.PatternType = ExcelFillStyle.Solid;\n\tsomeCells.Style.Fill.BackgroundColor.SetColor(Color.Navy);\n\n\tsheet.Cells.AutoFitColumns();\n\tpackage.SaveAs(new FileInfo(@\"basicUsage.xslx\"));\n}\n<\/code><\/pre>\n<p class=\"notice--info\"><strong>Did you know:<\/strong> It is a successor to ExcelPackage, hence the name.<\/p>\n<p><strong>Boring text ahead<\/strong>:<\/p>\n<p>While it\u2019s often not easy to find EPPlus examples online, the <a href=\"https:\/\/github.com\/JanKallman\/EPPlus\">official source code<\/a> does contain a whole bunch of extensive examples. Be sure to check them out.<\/p>\n<p>Everything covered works with LibreOffice 5.0. EPPlus covers things that LibreOffice doesn\u2019t seem to know how to handle. For example:<\/p>\n<ul>\n<li>Graphs<\/li>\n<li>LoadFromCollection <code>TableStyles<\/code><\/li>\n<li>sheet.View.PageLayoutView = true<\/li>\n<li>sheet.Hidden = eWorkSheetHidden.VeryHidden<\/li>\n<li>\u2026<\/li>\n<\/ul>\n<h1 id=\"examples\">Examples<\/h1>\n<h2 id=\"opening--saving\">Opening &amp; Saving<\/h2>\n<p>Open an existing Excel, or if the file does not exist, create a new one when <code>package.Save()<\/code> is called.<\/p>\n<pre><code class=\"language-c#\">using (var package = new ExcelPackage(new FileInfo(@\"openingandsaving.xslx\"), \"optionalPassword\"))\nusing (var basicUsageExcel = File.Open(@\"basicUsage.xslx\"), FileMode.Open))\n{\n\tvar sheet = package.Workbook.Worksheets.Add(\"sheet\");\n\tsheet.Cells[\"D1\"].Value = \"Everything in the package will be overwritten\";\n\tsheet.Cells[\"D2\"].Value = \"by the package.Load() below!!!\";\n\n\t\/\/ Loads the worksheets from BasicUsage\n\t\/\/ (MySheet with A1 = will it work?)\n\tpackage.Load(basicUsageExcel);\n\n\tpackage.Save(\"optionalPassword\");\n\t\/\/package.SaveAs(FileInfo \/ Stream)\n\t\/\/Byte[] p = package.GetAsByteArray();\n}\n<\/code><\/pre>\n<h2 id=\"selecting-cells\">Selecting cells<\/h2>\n<pre><code class=\"language-c#\">using (var package = new ExcelPackage())\n{\n\tExcelWorksheet sheet = package.Workbook.Worksheets.Add(\"MySheet\");\n\n\t\/\/ One cell\n\tExcelRange cellA2 = sheet.Cells[\"A2\"];\n\tvar alsoCellA2 = sheet.Cells[2, 1];\n\tAssert.That(cellA2.Address, Is.EqualTo(\"A2\"));\n\tAssert.That(cellA2.Address, Is.EqualTo(alsoCellA2.Address));\n\n\t\/\/ Column from a cell\n\t\/\/ ExcelRange.Start is the top and left most cell\n\tAssert.That(cellA2.Start.Column, Is.EqualTo(1));\n\t\/\/ To really get the column: sheet.Column(1)\n\n\t\/\/ A range\n\tExcelRange ranger = sheet.Cells[\"A2:C5\"];\n\tvar sameRanger = sheet.Cells[2, 1, 5, 3];\n\tAssert.That(ranger.Address, Is.EqualTo(sameRanger.Address));\n\n\t\/\/sheet.Cells[\"A1,A4\"] \/\/ Just A1 and A4\n\t\/\/sheet.Cells[\"1:1\"] \/\/ A row\n\t\/\/sheet.Cells[\"A:B\"] \/\/ Two columns\n\n\t\/\/ Linq\n\tvar l = sheet.Cells[\"A1:A5\"].Where(range =&gt; range.Comment != null);\n\n\t\/\/ Dimensions used\n\tAssert.That(sheet.Dimension, Is.Null);\n\n\tranger.Value = \"pushing\";\n\tvar usedDimensions = sheet.Dimension;\n\tAssert.That(usedDimensions.Address, Is.EqualTo(ranger.Address));\n\n\t\/\/ Offset: down 5 rows, right 10 columns\n\tvar movedRanger = ranger.Offset(5, 10);\n\tAssert.That(movedRanger.Address, Is.EqualTo(\"K7:M10\"));\n\tmovedRanger.Value = \"Moved\";\n\n\tpackage.SaveAs(new FileInfo(@\"\"));\n}\n<\/code><\/pre>\n<h2 id=\"writing-values\">Writing values<\/h2>\n<pre><code class=\"language-c#\">using (var package = new ExcelPackage())\n{\n\tExcelWorksheet sheet = package.Workbook.Worksheets.Add(\"MySheet\");\n\n\t\/\/ Format as text\n\tsheet.Cells[\"A1\"].Style.Numberformat.Format = \"@\";\n\n\t\/\/ Numbers\n\tsheet.SetValue(\"A1\", \"Numbers\");\n\tAssert.That(sheet.GetValue&lt;string&gt;(1, 1), Is.EqualTo(\"Numbers\"));\n\tsheet.Cells[\"B1\"].Value = 15.32;\n\tsheet.Cells[\"B1\"].Style.Numberformat.Format = \"#,##0.00\";\n\tAssert.That(sheet.Cells[\"B1\"].Text, Is.EqualTo(\"15.32\"));\n\n\t\/\/ Percentage\n\tsheet.Cells[\"C1\"].Value = 0.5;\n\tsheet.Cells[\"C1\"].Style.Numberformat.Format = \"0%\";\n\tAssert.That(sheet.Cells[\"C1\"].Text, Is.EqualTo(\"50%\"));\n\n\t\/\/ Money\n\tsheet.Cells[\"A2\"].Value = \"Moneyz\";\n\tsheet.Cells[\"B2,D2\"].Value = 15000.23D;\n\tsheet.Cells[\"C2,E2\"].Value = -2000.50D;\n\tsheet.Cells[\"B2:C2\"].Style.Numberformat.Format = \"#,##0.00 [$\u20ac-813];[RED]-#,##0.00 [$\u20ac-813]\";\n\tsheet.Cells[\"D2:E2\"].Style.Numberformat.Format = \"[$$-409]#,##0\";\n\n\t\/\/ DateTime\n\tsheet.Cells[\"A3\"].Value = \"Timey Wimey\";\n\tsheet.Cells[\"B3\"].Style.Numberformat.Format = \"yyyy-mm-dd\";\n\tsheet.Cells[\"B3\"].Formula = $\"=DATE({DateTime.Now:yyyy,MM,dd})\";\n\tsheet.Cells[\"C3\"].Style.Numberformat.Format = DateTimeFormatInfo.CurrentInfo.FullDateTimePattern;\n\tsheet.Cells[\"C3\"].Value = DateTime.Now;\n\tsheet.Cells[\"D3\"].Style.Numberformat.Format = \"dd\/MM\/yyyy HH:mm\";\n\tsheet.Cells[\"D3\"].Value = DateTime.Now;\n\n\t\/\/ A hyperlink (mailto: works also)\n\tsheet.Cells[\"C25\"].Hyperlink = new Uri(\"https:\/\/itenium.be\", UriKind.Absolute);\n\tsheet.Cells[\"C25\"].Value = \"Visit us\";\n\tsheet.Cells[\"C25\"].Style.Font.Color.SetColor(Color.Blue);\n\tsheet.Cells[\"C25\"].Style.Font.UnderLine = true;\n\n\tsheet.Cells[\"Z1\"].Clear();\n\n\tsheet.Cells.AutoFitColumns();\n\tpackage.SaveAs(new FileInfo(@\"\"));\n}\n<\/code><\/pre>\n<h2 id=\"styling-cells\">Styling cells<\/h2>\n<pre><code class=\"language-c#\">using (var package = new ExcelPackage())\n{\n\tExcelWorksheet sheet = package.Workbook.Worksheets.Add(\"Styling\");\n\tsheet.TabColor = Color.Red;\n\n\t\/\/ Cells with style\n\tExcelFont font = sheet.Cells[\"A1\"].Style.Font;\n\tsheet.Cells[\"A1\"].Value = \"Bold and proud\";\n\tsheet.Cells[\"A1\"].Style.Font.Name = \"Arial\";\n\tfont.Bold = true;\n\tfont.Color.SetColor(Color.Green);\n\t\/\/ ExcelFont also has: Size, Italic, Underline, Strike, ...\n\n\tsheet.Cells[\"A3\"].Style.Font.SetFromFont(new Font(new FontFamily(\"Arial\"), 15, FontStyle.Strikeout));\n\tsheet.Cells[\"A3\"].Value = \"SetFromFont(Font)\";\n\n\t\/\/ Borders need to be made\n\tsheet.Cells[\"A1:A2\"].Style.Border.BorderAround(ExcelBorderStyle.Dotted);\n\tsheet.Cells[5, 5, 9, 8].Style.Border.BorderAround(ExcelBorderStyle.Dotted);\n\n\t\/\/ More style\n\tsheet.Cells[5, 5, 9, 8].Merge = true;\n\tsheet.Cells[\"D14\"].Style.ShrinkToFit = true;\n\tsheet.Cells[\"D14\"].Style.Font.Size = 24;\n\tsheet.Cells[\"D14\"].Value = \"Shrinking for fit\";\n\n\tsheet.Cells[\"D15\"].Style.WrapText = true;\n\tsheet.Cells[\"D15\"].Value = \"A wrap, yummy!\";\n\tsheet.Cells[\"D16\"].Value = \"No wrap, ouch!\";\n\n\t\/\/ Setting a background color requires setting the PatternType first\n\tsheet.Cells[\"F6:G8\"].Style.Fill.PatternType = ExcelFillStyle.Solid;\n\tsheet.Cells[\"F6:G8\"].Style.Fill.BackgroundColor.SetColor(Color.Red);\n\n\t\/\/ Horizontal Alignment needs a little workaround\n\t\/\/ http:\/\/stackoverflow.com\/questions\/34660560\/epplus-isnt-honoring-excelhorizontalalignment-center-or-right\n\tvar centerStyle = package.Workbook.Styles.CreateNamedStyle(\"Center\");\n\tcenterStyle.Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;\n\tsheet.Cells[\"B5\"].StyleName = \"Center\";\n\tsheet.Cells[\"B5\"].Value = \"I'm centered\";\n\n\t\/\/ MIGHT NOT WORK (in LibreOffice):\n\tsheet.Cells[\"B6\"].Style.HorizontalAlignment = ExcelHorizontalAlignment.Center;\n\tsheet.Cells[\"B6\"].Value = \"I'm not centered? :(\";\n\n\tpackage.SaveAs(new FileInfo(@\"\"));\n}\n<\/code><\/pre>\n<p><strong>Conditional formatting<\/strong>:<\/p>\n<p>Example from <a href=\"https:\/\/github.com\/JanKallman\/EPPlus\/wiki\/Conditional-formatting\">official Wiki<\/a>.<\/p>\n<pre><code>ExcelAddress cfAddress1 = new ExcelAddress(\"B4:B9\");\nvar cfRule1 = sheet.ConditionalFormatting.AddTwoColorScale(cfAddress1);\n\ncfRule1.LowValue.Type = eExcelConditionalFormattingValueObjectType.Num;\ncfRule1.LowValue.Value = 0;\ncfRule1.LowValue.Color = Color.Green;\n\ncfRule1.HighValue.Type = eExcelConditionalFormattingValueObjectType.Formula;\ncfRule1.HighValue.Formula = \"MAX(B4:B9)\";\ncfRule1.HighValue.Color = Color.Red;\n\ncfRule1.StopIfTrue = true;\ncfRule1.Style.Font.Bold = true;\n<\/code><\/pre>\n<h1>Also in this series<\/h1>\n<ul>\n<li>This Part: Create Excels with C# and EPPlus: A tutorial<\/li>\n<li>Part 2: <a href=\"\/dotnet\/create-xlsx-excel-with-epplus-csharp-formulas-and-datavalidation\/\">Create Excels with C# and EPPlus: Formulas &#038; DataValidation<\/a><\/li>\n<li>Part 3: <a href=\"\/dotnet\/create-xlsx-excel-with-epplus-csharp-import\/\">Create Excels with C# and EPPlus: Import<\/a><\/li>\n<li>Part 4: <a href=\"\/dotnet\/create-xlsx-excel-with-epplus-csharp-miscellaneous\/\">Create Excels with C# and EPPlus: Miscellaneous<\/a><\/li>\n<li>Part 5: <a href=\"\/dotnet\/excel-formulas-cheat-sheet\/\">Excel formulas cheat sheet<\/a><\/li>\n<li>Part 6: <a href=\"\/dotnet\/epplus-pay-to-play\/\">EPPlus: No longer free to use in a commercial setting<\/a><\/li>\n<\/ul>\n<h1>Extras<\/h1>\n<p><b>Stuff that came into being during the making of this post<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/itenium-be\/EPPlusTutorial\">The accompanying source on GitHub<\/a><\/li>\n<\/ul>\n<h1>Updates<\/h1>\n<ul>\n<li> 10 March 2023: EPPlus is no longer free for commercial use!<\/li>\n<\/ul>\n<h1> Package Versions <i class=\"fa fa-info-circle\" style=\"float: right; color: cornflowerblue; font-size: 28px\" title=\"Package versions used for this post and in the accompanying code on Github\"><\/i><\/h1>\n<div><a href=\"https:\/\/github.com\/JanKallman\/EPPlus\" class=\"github\"><img decoding=\"async\" src=\"https:\/\/img.shields.io\/github\/stars\/JanKallman\/EPPlus.svg?style=social&#038;label=Star\" \/><\/a><a href=\"https:\/\/github.com\/JanKallman\/EPPlus\">JanKallman\/EPPlus<\/a>: v4.5.3.3 <\/div>\n<p> EPPlus-Commerical: v6.1.3 <\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"notice--danger\"><strong>Version 4.5.3.3 is the last version of EPPlus you can use without a license for commercial use.<\/strong><br \/> See <a href=\"\/blog\/dotnet\/epplus-pay-to-play\/\">some alternatives<\/a> if that is a dealbreaker for you!<\/p>\n<p class=\"notice--info\"><strong>We now have a blog series on an alternative Excel package <a href=\"\/blog\/dotnet\/create-xlsx-excel-with-closedxml-csharp\">ClosedXML<\/a><\/strong><br \/> Which is basically on equal footing with EPPlus.<\/p>\n","protected":false},"author":1,"featured_media":2116,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[12,6],"class_list":["post-1687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","tag-excel","tag-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Excels with C# and EPPlus: A tutorial - Itenium<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Excels with C# and EPPlus: A tutorial - Itenium\" \/>\n<meta property=\"og:description\" content=\"Version 4.5.3.3 is the last version of EPPlus you can use without a license for commercial use. See some alternatives if that is a dealbreaker for you!We now have a blog series on an alternative Excel package ClosedXML Which is basically on equal footing with EPPlus.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/\" \/>\n<meta property=\"og:site_name\" content=\"Itenium\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-09T21:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-28T12:31:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Usdevelop\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Usdevelop\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/\",\"name\":\"Create Excels with C# and EPPlus: A tutorial - Itenium\",\"isPartOf\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg\",\"datePublished\":\"2023-03-09T21:00:00+00:00\",\"dateModified\":\"2025-11-28T12:31:47+00:00\",\"author\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\"},\"breadcrumb\":{\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg\",\"contentUrl\":\"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg\",\"width\":360,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/demo.sidekick.be\/itenium\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Excels with C# and EPPlus: A tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#website\",\"url\":\"https:\/\/demo.sidekick.be\/itenium\/\",\"name\":\"Itenium\",\"description\":\"We build software. We build careers.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022\",\"name\":\"Usdevelop\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g\",\"caption\":\"Usdevelop\"},\"sameAs\":[\"https:\/\/demo.sidekick.be\/itenium\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Excels with C# and EPPlus: A tutorial - Itenium","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Create Excels with C# and EPPlus: A tutorial - Itenium","og_description":"Version 4.5.3.3 is the last version of EPPlus you can use without a license for commercial use. See some alternatives if that is a dealbreaker for you!We now have a blog series on an alternative Excel package ClosedXML Which is basically on equal footing with EPPlus.","og_url":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/","og_site_name":"Itenium","article_published_time":"2023-03-09T21:00:00+00:00","article_modified_time":"2025-11-28T12:31:47+00:00","og_image":[{"width":360,"height":300,"url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg","type":"image\/jpeg"}],"author":"Usdevelop","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Usdevelop","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/","url":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/","name":"Create Excels with C# and EPPlus: A tutorial - Itenium","isPartOf":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#website"},"primaryImageOfPage":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage"},"image":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage"},"thumbnailUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg","datePublished":"2023-03-09T21:00:00+00:00","dateModified":"2025-11-28T12:31:47+00:00","author":{"@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022"},"breadcrumb":{"@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#primaryimage","url":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg","contentUrl":"https:\/\/demo.sidekick.be\/itenium\/wp-content\/uploads\/2025\/11\/excel.jpg","width":360,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/demo.sidekick.be\/itenium\/blog\/dotnet\/create-xlsx-excel-with-epplus-csharp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/demo.sidekick.be\/itenium\/"},{"@type":"ListItem","position":2,"name":"Create Excels with C# and EPPlus: A tutorial"}]},{"@type":"WebSite","@id":"https:\/\/demo.sidekick.be\/itenium\/#website","url":"https:\/\/demo.sidekick.be\/itenium\/","name":"Itenium","description":"We build software. We build careers.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/demo.sidekick.be\/itenium\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/6ab401ce01e858184ee4a8667fe0f022","name":"Usdevelop","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/demo.sidekick.be\/itenium\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc8cf9b9e9d5bbe7e8d247907cc9ac8457bbfa2854b52eaddf6529adfe88ceab?s=96&d=mm&r=g","caption":"Usdevelop"},"sameAs":["https:\/\/demo.sidekick.be\/itenium"]}]}},"_links":{"self":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/comments?post=1687"}],"version-history":[{"count":3,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1687\/revisions"}],"predecessor-version":[{"id":2319,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/posts\/1687\/revisions\/2319"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media\/2116"}],"wp:attachment":[{"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/media?parent=1687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/categories?post=1687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.sidekick.be\/itenium\/wp-json\/wp\/v2\/tags?post=1687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}