# Quick question about ExcelFiles.jl

**URL:** https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962
**Category:** General Usage
**Created:** [April 9, 2019, 3:03pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962 "2019-04-09T15:03:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![adriano.vilela](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adriano.vilela/32/7596_2.png) [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)
#### Post date: [April 9, 2019, 3:03pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/1 "2019-04-09T15:03:56Z")

</div>

Does anybody know if it’s possible to use ExcelFiles.jl to save multiple sheets to a single xlsx file? I have 3 DataFrames that I would like to save as 3 separate sheets in a xlsx file.

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [April 9, 2019, 3:06pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/2 "2019-04-09T15:06:02Z")

</div>

No, not possible at this point. That would be a great extension, though!

You might be able to do it with XLSX.jl directly (which ExcelFiles.jl uses under the hood).

---

<div class="post-metadata">

### Author: ![adriano.vilela](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adriano.vilela/32/7596_2.png) [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)
#### Post date: [April 9, 2019, 3:16pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/3 "2019-04-09T15:16:09Z")

</div>

I see. I’m pretty sure it’s possible to do it with XLSX.jl. I’ll have a look.

I didn’t know ExcelFiles.jl uses XLSX.jl under the hood. I was using XLSX.jl before but then switched to ExcelFiles.jl because I like its API better and because it integrates so well with the whole Queryverse story.

David, thanks a lot for your reply and all your hard work on this topic (and many others).

---

<div class="post-metadata">

### Author: ![felipenoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/felipenoris/32/553_2.png) [@felipenoris](https://discourse.julialang.org/u/felipenoris)
#### Post date: [April 23, 2019, 6:16pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/4 "2019-04-23T18:16:18Z")

</div>

See the example in the docs: [Tutorial · XLSX.jl](https://felipenoris.github.io/XLSX.jl/stable/tutorial/#Export-Tabular-Data-as-a-DataFrame-1)

---

<div class="post-metadata">

### Author: ![adriano.vilela](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adriano.vilela/32/7596_2.png) [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)
#### Post date: [May 10, 2019, 2:22pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/5 "2019-05-10T14:22:10Z")

</div>

I tried the instructions in the example you linked in order to write 3 DataFrames to 3 separate sheets in an xlsx file but, after waiting for more than 15 minutes, I just cancelled the operation. Here’s the DataFrames I’m trying to write to the xlsx file:

```julia
df_1 370.184 MiB 7708×329 DataFrame         
df_2 431.276 MiB 7708×329 DataFrame         
df_3 130.482 MiB 3857×329 DataFrame         

```

These DataFrames come from csv files about 40 MB in size (df\_3 comes from a 12.7 MB csv file).

I guess this may be related to this issue: [https://github.com/felipenoris/XLSX.jl/issues/61](https://github.com/felipenoris/XLSX.jl/issues/61)

---

<div class="post-metadata">

### Author: ![felipenoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/felipenoris/32/553_2.png) [@felipenoris](https://discourse.julialang.org/u/felipenoris)
#### Post date: [May 10, 2019, 2:44pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/6 "2019-05-10T14:44:38Z")

</div>

Yes, writing large Excel files takes forever. I’m sorry about that.  
I’ll rewrite the package to fix this.

---

<div class="post-metadata">

### Author: ![Sandy45](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Sandy45](https://discourse.julialang.org/u/Sandy45)
#### Post date: [July 7, 2024, 9:30pm UTC](https://discourse.julialang.org/t/quick-question-about-excelfiles-jl/22962/7 "2024-07-07T21:30:58Z")

</div>

It seems like readme should be updated for this package, I was trying to save dataframe directly to excel file but seeing below error. Any inputs on this or please point me towards the documentation?

```julia
julia> df |> save("output.xlsx")
Error encountered while save File{DataFormat{:Excel}, String}("output.xlsx").

Fatal error:
ERROR: ExcelFiles writer error: neither save nor fileio_save is defined
  due to FileIO.SpecError(ExcelFiles, :save)
  Will try next loader.

```
