The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
combine 3 excel files using shell. radhika Shell Programming and Scripting 11 05-06-2009 07:18 AM
Help needed to combine files to excel sheet ahjiefreak Shell Programming and Scripting 5 03-30-2008 06:10 AM
How to format excel sheets in UNIX?? Vijay06 Shell Programming and Scripting 2 05-16-2007 10:01 AM
Multiple excel work sheets through UNIX puspendu Shell Programming and Scripting 1 05-03-2006 05:28 AM
creating more than 2 excel sheets in C manceryder High Level Programming 7 12-20-2005 06:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2008
jagadish99 jagadish99 is offline
Registered User
  
 

Join Date: Aug 2008
Location: Chennai
Posts: 3
How to combine different Excel sheets into a single work book using UNIX

Hi All,

I have 4 excel files and i want to combine these 4 files into a single workbook .. my constraints is each work sheet should go to a seperate sheet or tab with sheet name ..

my final workbook should have 4 tabs(sheets) each for one.

Thanks in Advance..
  #2 (permalink)  
Old 08-27-2008
awk awk is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 134
useing the xml format (which is an acceptable XLS file, I have in oracle, created a spreadsheet with as many as 10 different workbooks.

Not having the Excel file in excel's XML format, I don't think I would even try.

Basically, and you can see the information easily in XML, there is a separate WORKBOOK tag for each. Cut and paste would do it.

By if they are XLS native, send to a PC and combine there.


Quote:
Originally Posted by jagadish99 View Post
Hi All,

I have 4 excel files and i want to combine these 4 files into a single workbook .. my constraints is each work sheet should go to a seperate sheet or tab with sheet name ..

my final workbook should have 4 tabs(sheets) each for one.

Thanks in Advance..
  #3 (permalink)  
Old 08-27-2008
arunsoman80 arunsoman80 is offline
Registered User
  
 

Join Date: Jul 2008
Location: New York
Posts: 45
The easiest way would be to save the input files as XML Spreadsheet format instead of XLS. Then create a new XML File as follows:
1. Remove the tags <Workbook> </Workbook> from all the input files.
2. After step - 1, Extract all the remaining contents of the input files and paste it between the tags <Workbook> </Workbook> in the new XML file.
The final XML file when opened in excel will show multiple worksheets as expected.
  #4 (permalink)  
Old 08-27-2008
jamison_utter jamison_utter is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 11
maybe?

PERL and Spreadsheet::ParseExcel, and Spreadsheet::WriteExcel
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0