# Convert excel spreadsheet to csv

**URL:** <https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247>\
**Category:** Ruby\
**Created:** [December 27, 2007, 2:55am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247 "2007-12-27T02:55:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 2:55am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/1 "2007-12-27T02:55:36Z")

</div>

is there any library to convert excel file to csv.  
apprecaite ur help

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 6:43am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/2 "2007-12-27T06:43:39Z")

</div>

Junkone wrote:

> is there any library to convert excel file to csv.  
> apprecaite ur help

Just use the OLE interface to open the spreadsheet, then do a “save as”  
CSV.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 7:29am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/3 "2007-12-27T07:29:52Z")

</div>

Try ruport…

its a report generating tool…

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 10:36am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/4 "2007-12-27T10:36:28Z")

</div>

bbiker wrote:

> 

That’s what I said … you have to code it in Ruby, though … doing it  
with the mouse is cheating! 🙂

OK … Ruby Q. proposal … what’s the most complicated path you can  
come up with to do this? Open the spreadsheet as a database in Rails?  
Extra points for requiring a Windows machine, a Linux machine and a Mac.  
Even more extra points for doing it totally without a Windows machine.  
Anything goes – OpenOffice bindings – uploading it to Google Office –  
AJAX – decoding the binary with “unpack” – you name it.

😉  
😉

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 7:35am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/5 "2007-12-27T07:35:41Z")

</div>

On Dec 27, 1:29 am, Ratnavel S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Try ruport…
> 
> ## its a report generating tool…
> 
> Posted viahttp://www.ruby-forum.com/.

Open the excel file and save it as a csv file.!!!

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 11:33am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/6 "2007-12-27T11:33:01Z")

</div>

> what’s the most complicated path you can come up with to do this?

lol

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/7 "2007-12-27T14:40:52Z")

</div>

On Dec 27, 5:42 am, Thomas P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thomas P.  
> removed\_email\_address@domain.invalid  
> removed\_email\_address@domain.invalid  
> Büro: 030 - 830 353 88  
> mobil: 0176 - 75 03 03 04  
> Privat: 030 - 49 78 37 06http://thopre.wordpress.com/[http://www.thopre.com/](http://www.thopre.com/)

roo does not export ms excel spreadsheets. it only does open office  
and goffice spreadsheets to csv.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/8 "2007-12-27T14:45:40Z")

</div>

2007/12/27, M. Edward (Ed) Borasky [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> bbiker wrote:
> 
> > Open the excel file and save it as a csv file.!!!
> 
> That’s what I said … you have to code it in Ruby, though … doing it  
> with the mouse is cheating! 🙂

… but very _pragmatic_! 😉

> OK … Ruby Q. proposal … what’s the most complicated path you can  
> come up with to do this?

Actually IMHO that’s a bad quiz idea because with whatever solution  
someone comes up, you will be able to find a more complicated solution  
by simply adding a step. 🙂

Kind regards

robert

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 11:43am UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/9 "2007-12-27T11:43:12Z")

</div>

On 27/12/2007, Junkone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is there any library to convert excel file to csv.  
> apprecaite ur help

try the gem ‘roo’!

-Thomas

–  
Thomas P.  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid  
BÃ¼ro: 030 - 830 353 88  
mobil: 0176 - 75 03 03 04  
Privat: 030 - 49 78 37 06

> **[thopre](https://thopre.wordpress.com/)**
>
> Entwicklungen für die Bühne des Lebens

> **[ThoPre.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=thopre.com)**
>
> The leading source brandable domain names. Competitive prices. Excellent service. Get your domain name today.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/10 "2007-12-27T16:27:14Z")

</div>

On 27/12/2007, Junkone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> roo does not export ms excel spreadsheets. it only does open office  
> and goffice spreadsheets to csv.
> 
> Oh - but it should …  
> I will fix this in the next release.

-Thomas

–  
Thomas P.  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid  
BÃ¼ro: 030 - 830 353 88  
mobil: 0176 - 75 03 03 04  
Privat: 030 - 49 78 37 06

> **[thopre](https://thopre.wordpress.com/)**
>
> Entwicklungen für die Bühne des Lebens

> **[ThoPre.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=thopre.com)**
>
> The leading source brandable domain names. Competitive prices. Excellent service. Get your domain name today.

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 27, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/11 "2007-12-27T15:00:54Z")

</div>

On Dec 27, 8:36 am, Junkone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> roo does not export ms excel spreadsheets. it only does open office  
> and goffice spreadsheets to csv.

The web site at [http://roo.rubyforge.org/](http://roo.rubyforge.org/) claims that it works with  
Excel spreadsheets. Is this not correct?

---

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [December 28, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/convert-excel-spreadsheet-to-csv/124247/12 "2007-12-28T12:41:13Z")

</div>

On 27/12/2007, Junkone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> roo does not export ms excel spreadsheets. it only does open office  
> and goffice spreadsheets to csv.

Excel#to\_csv is now available again in release 0.8.2  
Sorry, it disappeared with the last great restructuring of my gem.

-Thomas

–  
Thomas P.  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid  
BÃ¼ro: 030 - 830 353 88  
mobil: 0176 - 75 03 03 04  
Privat: 030 - 49 78 37 06

> **[thopre](https://thopre.wordpress.com/)**
>
> Entwicklungen für die Bühne des Lebens

> **[ThoPre.com is for sale | HugeDomains](https://www.hugedomains.com/domain_profile.cfm?d=thopre.com)**
>
> The leading source brandable domain names. Competitive prices. Excellent service. Get your domain name today.
