# XLSX package

**URL:** <https://discourse.julialang.org/t/xlsx-package/135513>\
**Category:** New to Julia\
**Tags:** package, xlsx\
**Created:** [February 6, 2026, 5:25pm UTC](https://discourse.julialang.org/t/xlsx-package/135513 "2026-02-06T17:25:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.julialang.org/u/Terry)\
**Post date:** [February 6, 2026, 5:25pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/1 "2026-02-06T17:25:03Z")

</div>

I am coming to Julia from R. I really like Julia, but it is limited by rather poor documentation.

I could not find good documentation for the XLSX package. I found instructions online for creating an xlsx file from a data frame, but the code didn’t work. Here’s what worked:

XLSX.writetable(  
outxlsx,  
World = (eachcol(world\_df), names(world\_df)),  
World\_Seen = (eachcol(world\_seen), names(world\_seen)),  
Hummingbirds = (eachcol(world\_hummingbirds), names(world\_hummingbirds)),  
Hummingbirds\_Seen = (eachcol(hummingbirds\_seen), names(hummingbirds\_seen))  
)

outxlsx is the path to the workbook I am creating,  
This code creates four sheets in the workbook from four data frames.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 6, 2026, 5:32pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/2 "2026-02-06T17:32:30Z")

</div>

> [@Terry](#):
>
> I could not find good documentation for the XLSX package.

Welcome to the Discourse forum!

You say this isn’t working: [Tutorial · XLSX.jl](https://felipenoris.github.io/XLSX.jl/stable/tutorial/#Tables.jl-interface)?

If that should be the case, please share the code you tried (enclosed in triple backticks, like ``` ) and the error message (full stack trace).

---

<div class="post-metadata">

**Author:** ![TimG](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@TimG](https://discourse.julialang.org/u/TimG)\
**Post date:** [February 6, 2026, 5:49pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/3 "2026-02-06T17:49:58Z")

</div>

Also, [the docs for the `writetable` function](https://felipenoris.github.io/XLSX.jl/stable/api/#XLSX.writetable) give an example of how to write multiple DataFrames at once, each to a separate Excel tab.

```julia-auto
XLSX.writetable("report.xlsx", "REPORT_A" => df1, "REPORT_B" => df2)

```

---

<div class="post-metadata">

**Author:** ![Terry](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.julialang.org/u/Terry)\
**Post date:** [February 6, 2026, 6:06pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/4 "2026-02-06T18:06:01Z")

</div>

Thanks. The webpage I found had “collect” in the argument list for each sheet, which didn’t work. My problem was finding the correct documentation. Thanks for showing it to me.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 6, 2026, 6:26pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/5 "2026-02-06T18:26:58Z")

</div>

If you look for a package, always Google for the full package name, in this case `xlsx.jl`. The first hit is [Home · XLSX.jl](https://felipenoris.github.io/XLSX.jl/stable/) .

Sometimes you might find the GitHub page of the package. In that case, click on the Button “docs stable” on the top left of the `README.md` file to see the HTML documentation.

Some packages don’t have an HTML documentation. In that case, read the README.md file of the package on GitHub or ask here.

---

<div class="post-metadata">

**Author:** ![Terry](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Terry](https://discourse.julialang.org/u/Terry)\
**Post date:** [February 6, 2026, 6:39pm UTC](https://discourse.julialang.org/t/xlsx-package/135513/6 "2026-02-06T18:39:37Z")

</div>

Thanks! I’ll be using this package a lot. I don’t think that I will be using R or Python much from now on.

Terry
