# Excel Writer v.19

**URL:** <https://forum.ada-lang.io/t/excel-writer-v-19/1107>\
**Category:** Releases\
**Created:** [August 21, 2024, 5:50pm UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107 "2024-08-21T17:50:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zertovitch](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/zertovitch/32/90_2.png) [@zertovitch](https://forum.ada-lang.io/u/zertovitch)\
**Post date:** [August 21, 2024, 5:50pm UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/1 "2024-08-21T17:50:00Z")

</div>

The new feature in version 19 is the possibility to write Excel formulas in the generated spreadsheets.  
Simple formulas are supported so far (combinations of numbers, strings, cell references, and combinations of +, -, \*, /, &).  
See ew\_test.adb and excel\_out\_demo.adb for examples.

For instance, you can write

` xl.Write (3, 1, "=A1+A2");`

and Excel\_Out will convert the text for cell A3 into a genuine Excel formula.

Some advantages:

- formulas help explaining what a cell’s contents mean
- generated spreadsheets can be reworked further by humans

Excel Writer (Excel\_Out) is a free, standalone, portable, open source package for producing Excel spreadsheets with basic formattings and formulas and page layout.  
It can be used in an “Ada.Text\_IO” fashion, with Put, Put\_Line and New\_Line.

Excel Writer can be found via the following links:

Home page: [http://excel-writer.sf.net/](http://excel-writer.sf.net/)  
Project page: [Excel Writer download | SourceForge.net](https://sourceforge.net/projects/excel-writer/)  
Mirror: [GitHub - zertovitch/excel-writer: Excel Writer: a standalone, portable Ada package for producing Excel spreadsheets](https://github.com/zertovitch/excel-writer)  
Alire crate: [Alire - Excel\_writer](https://alire.ada.dev/crates/excel_writer)

Enjoy!

---

<div class="post-metadata">

**Author:** ![cantanima](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/cantanima/32/121_2.png) [@cantanima](https://forum.ada-lang.io/u/cantanima)\
**Post date:** [August 22, 2024, 5:44pm UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/2 "2024-08-22T17:44:39Z")

</div>

Are there plans to make the formulas symbolic; i.e., something to this effect?

```ada
First_Cell := Formula_For_First_Cell;
Second_Cell := Formula_For_Second_Cell;
Xl.Write (3, 1, Formula (Sum (First_Cell, Second_Cell)));

```

(I’m not saying it’s a good idea. I’m just curious.)

---

<div class="post-metadata">

**Author:** ![zertovitch](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/zertovitch/32/90_2.png) [@zertovitch](https://forum.ada-lang.io/u/zertovitch)\
**Post date:** [August 22, 2024, 10:53pm UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/3 "2024-08-22T22:53:04Z")

</div>

You can already do it with strings:

```ada
Xl.Write (3, 1, '=' & First_Cell & '+' & Second_Cell);

```

---

<div class="post-metadata">

**Author:** ![reinert](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@reinert](https://forum.ada-lang.io/u/reinert)\
**Post date:** [August 29, 2024, 7:42am UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/4 "2024-08-29T07:42:28Z")

</div>

Cool. I am sometimes asked to provide results in Excel format, but so far, CSV format has been the only alternative 🙂

---

<div class="post-metadata">

**Author:** ![zertovitch](https://forum.ada-lang.io/user_avatar/forum.ada-lang.io/zertovitch/32/90_2.png) [@zertovitch](https://forum.ada-lang.io/u/zertovitch)\
**Post date:** [August 30, 2024, 3:22am UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/5 "2024-08-30T03:22:52Z")

</div>

Then, go for Excel\_Out!  
CSVs can be tedious for human readers, but has its advantages too.  
Sometimes I output both formats.

---

<div class="post-metadata">

**Author:** ![reinert](https://forum.ada-lang.io/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@reinert](https://forum.ada-lang.io/u/reinert)\
**Post date:** [September 2, 2024, 7:30pm UTC](https://forum.ada-lang.io/t/excel-writer-v-19/1107/6 "2024-09-02T19:30:39Z")

</div>

I think I will ditto 🙂
